From 4ffe90c31de31429f1bc202d28fff0f83ef0e4a0 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 8 Dec 2020 17:00:06 -0500 Subject: [PATCH] Update gulpfile.js to work with Gulp 4 Hope this fix saves people some headaches. Gulp 4 has broken the gulpfile.js this Change will Update gulpfile.js to work with Gulp 4. for more info on the fix: https://stackoverflow.com/questions/36897877/gulp-error-the-following-tasks-did-not-complete-did-you-forget-to-signal-async https://stackoverflow.com/questions/39665773/gulp-error-watch-task-has-to-be-a-function --- autoprefixer/gulpfile.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/autoprefixer/gulpfile.js b/autoprefixer/gulpfile.js index d054cba..d06911d 100644 --- a/autoprefixer/gulpfile.js +++ b/autoprefixer/gulpfile.js @@ -1,14 +1,13 @@ var gulp = require('gulp'); var autoprefixer = require('gulp-autoprefixer'); - -gulp.task('styles',function() { +gulp.task('styles', done => { gulp.src('css/styles.css') .pipe(autoprefixer()) .pipe(gulp.dest('build')) + done(); }); - gulp.task('watch',function() { - gulp.watch('css/styles.css', ['styles']); + gulp.watch('css/styles.css', gulp.series('styles')); });