Skip to content
Permalink
Browse files

fix watch task for gulp 4.x compat

  • Loading branch information...
dannyvankooten committed Oct 30, 2018
1 parent 5c69fb6 commit 69870d6fa8152f843964c44fdc78f870ffb66ef1
Showing with 5 additions and 5 deletions.
  1. +5 −5 gulpfile.js
@@ -76,9 +76,9 @@ gulp.task('sass', function () {
gulp.task('default', gulp.series('app-js', 'tracker-js', 'sass', 'html', 'img', 'fonts' ) ); gulp.task('default', gulp.series('app-js', 'tracker-js', 'sass', 'html', 'img', 'fonts' ) );


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

0 comments on commit 69870d6

Please sign in to comment.
You can’t perform that action at this time.