Skip to content
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

[4.0] gulp.watch fails working after a single update #1658

Closed
nmccready opened this issue May 12, 2016 · 2 comments
Closed

[4.0] gulp.watch fails working after a single update #1658

nmccready opened this issue May 12, 2016 · 2 comments

Comments

@nmccready
Copy link
Contributor

Gulp 4.0 was recently changed to use glob-watcher instead of chokidar directly. With that change watch does not work on sequential updates after the first change.

There are many comments on the change set here.

@phated
Copy link
Member

phated commented May 12, 2016

Duplicate of #1623, #1624, #1626, #1638 and #1656 - Please look through issues before opening yet another issue about the exact same thing.

@phated phated closed this as completed May 12, 2016
@alexisdiel
Copy link

added the done parameter at the last task and callback at the end.

gulp.task("reload", (done) => { browserSync.reload(); done(); });
gulp.task("js:watch", () => gulp.watch("lib/**/*.js", gulp.series("js", "reload")));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants