From 69870d6fa8152f843964c44fdc78f870ffb66ef1 Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Tue, 30 Oct 2018 16:26:35 +0100 Subject: [PATCH] fix watch task for gulp 4.x compat --- gulpfile.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index e5ec8ab9..deabaadd 100644 --- a/gulpfile.js +++ b/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('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') ); }));