-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
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
gulp watch: Task never defined: watch #13
Comments
I found that this works. Add to gulpfile.js |
@Peteypete It seem to work for me, but the task seems to get stuck at some point :( |
@azinkey @Zhephard Hi, did you guys manage to do |
After buildCss function I've change code like this and it works in gulp v4;New one gulp.task('watch', function () {
gulp.watch(['scss/*.scss'], gulp.series(buildCss));
});
gulp.task('default', gulp.series(buildCss, 'watch')); Old one function watcher() {
gulp.watch(['scss/*.scss'], gulp.series(buildCss));
}
exports.watch = gulp.series(buildCss, watcher);
exports.default = gulp.series(buildCss); |
after download and run npm install, i am trying run gulp watch, then getting this error
ubuntu 18:04
nodejs v8.10.0
npp 6.9.0
gulp cli 2.2.0
local version 4.0.0
The text was updated successfully, but these errors were encountered: