Browse Source

Update to gulp v4

master
Martins Eglitis 2 years ago
parent
commit
e2a7be26cd
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      gulpfile.js

+ 3
- 5
gulpfile.js View File

@@ -20,9 +20,7 @@ gulp.task("sass", function() {

// Concatenate & Minify JS
gulp.task("js", function() {
return gulp.src([
"public/js/src/jquery.js",
"public/js/src/*.js"])
return gulp.src("public/js/src/*.js")
.pipe(concatjs("main.js"))
.pipe(uglifyjs())
.pipe(gulp.dest("public/js/dist"));
@@ -35,7 +33,7 @@ gulp.task("watch", function() {
});

// Default Task
gulp.task("default", [
gulp.task("default", gulp.parallel(
"sass",
"js"
]);
));

Loading…
Cancel
Save