Skip to content

Commit

Permalink
fix watch task for gulp 4.x compat
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Oct 30, 2018
1 parent 5c69fb6 commit 69870d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ gulp.task('sass', function () {
gulp.task('default', gulp.series('app-js', 'tracker-js', 'sass', 'html', 'img', 'fonts' ) );

gulp.task('watch', gulp.series('default', function() {
gulp.watch(['./assets/src/js/**/*.js'], ['app-js', 'tracker-js'] );
gulp.watch(['./assets/src/sass/**/**/*.scss'], ['sass'] );
gulp.watch(['./assets/src/**/*.html'], ['html'] );
gulp.watch(['./assets/src/img/**/*'], ['img'] );
gulp.watch(['./assets/src/fonts/**/*'], ['fonts'] );
gulp.watch(['./assets/src/js/**/*.js'], gulp.parallel('app-js', 'tracker-js') );
gulp.watch(['./assets/src/sass/**/**/*.scss'], gulp.parallel( 'sass') );
gulp.watch(['./assets/src/**/*.html'], gulp.parallel( 'html') );
gulp.watch(['./assets/src/img/**/*'], gulp.parallel( 'img') );
gulp.watch(['./assets/src/fonts/**/*'], gulp.parallel( 'fonts') );
}));

0 comments on commit 69870d6

Please sign in to comment.