We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The easy way is to upgrade to gulp 4:
# global npm upgrade -g gulp-cli # local (each project) npm uninstall gulp --save-dev npm install 'gulpjs/gulp.git#4.0' --save-dev
The task and watch system changes a bit, so the upgraded gulpfile.js looks like that:
// gulpfile.js [...] gulp.task('serve', function() { browserSync.init({ server: "./", open: false, }) let watcher = { scss : gulp.watch('css/src/**/*.scss'), js : gulp.watch('js/src/**/*.js'), pug : gulp.watch('templates/**/*.pug'), img : gulp.watch('img/**/*') } watcher.scss.on('all', gulp.parallel('scss')) watcher.js.on('all', gulp.parallel('js')) watcher.pug.on('all', gulp.parallel('pug')) watcher.img.on('all', gulp.parallel(browserSync.reload)) gulp.parallel('scss') }) gulp.task('build', gulp.parallel('pug', 'scss', 'js')) gulp.task('default', gulp.parallel('build', 'serve'))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The easy way is to upgrade to gulp 4:
The task and watch system changes a bit, so the upgraded gulpfile.js looks like that:
The text was updated successfully, but these errors were encountered: