@@ -47,7 +47,7 @@ gulp.task('clean', function() {
4747 return del ([' build' ]);
4848});
4949
50- gulp .task (' scripts' , [ ' clean ' ], function () {
50+ gulp .task (' scripts' , function () {
5151 // Minify and copy all JavaScript (except vendor scripts)
5252 // with sourcemaps all the way down
5353 return gulp .src (paths .scripts )
@@ -60,7 +60,7 @@ gulp.task('scripts', ['clean'], function() {
6060});
6161
6262// Copy all static images
63- gulp .task (' images' , [ ' clean ' ], function () {
63+ gulp .task (' images' , function () {
6464 return gulp .src (paths .images )
6565 // Pass in options to the task
6666 .pipe (imagemin ({optimizationLevel: 5 }))
@@ -69,12 +69,13 @@ gulp.task('images', ['clean'], function() {
6969
7070// Rerun the task when a file changes
7171gulp .task (' watch' , function () {
72- gulp .watch (paths .scripts , [ ' scripts' ] );
73- gulp .watch (paths .images , [ ' images' ] );
72+ gulp .watch (paths .scripts , ' scripts' );
73+ gulp .watch (paths .images , ' images' );
7474});
7575
76+ gulp .task (' all' , gulp .parallel (' watch' , ' scripts' , ' images' ));
7677// The default task (called when you run `gulp` from cli)
77- gulp .task (' default' , [ ' watch ' , ' scripts ' , ' images ' ] );
78+ gulp .task (' default' , gulp . series ( ' clean ' , ' all ' ) );
7879```
7980
8081## Incremental Builds
0 commit comments