gulp.watch stops watching files after first detection
See original GitHub issueAfter the first modification to index.html, gulp.watch
will stop detecting changes to the file. This issue does not exist for me on 3.9.1.
gulp.task('watch', watch);
function reloadBrowserSync(cb) {
console.log('sssssssssssssssss');
cb();
}
function watch(done) {
gulp.watch(['/home/one/github/one-drop/src/index.html',
'/home/one/github/one-drop/src/app/**/*.html'], reloadBrowserSync);
}
one@development ~/github $ node --version
v4.2.2
one@development ~/github $ npm --version
2.14.7
one@development ~/github/drop $ gulp -v
[15:11:54] CLI version 1.2.2
[15:11:54] Local version 4.0.0-alpha.2
Reference issue 1783
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
gulp-watch stops after detecting only one change in .scss ...
Every gulp task function is passed a callback as its first argument, to let you signal that the task is over. In your...
Read more >Gulp watch not watching file changes [Solved]
My gulp-watch task has been started normally. But it seems like gulp can't detect that my files was changed.
Read more >Tasks in Visual Studio Code
The compiler stops when Compilation complete. Watching for file changes. is printed to the console. Between those two strings problems are reported. The ......
Read more >Using Gulp with Dart Sass
Without this, you won't be able to watch Sass files for changes - any errors would stop the watching of files. (More on...
Read more >Watching Files
The watch() API connects globs to tasks using a file system watcher. It watches for changes to files that match the globs and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@joelwallis, i’ve tried, but found the solution in other issues.
added the done parameter and called back at the end.
@contract and as I noted, the other person that jumped in this thread isn’t using gulp 4…