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')); });