Reputation: 56
I'm use gulp. I have a task
gulp.task('watch', function () {
gulp.watch(['app/**/*.js'], ['scripts']);
});
I have same folder structure:
If I add file *.js or new subdirectory, for example, into 'modules/admin', gulp watch working, but, if I create new subdirectory in modules/, for example, 'about', and add into 'about' file, for example, aboutCtrl.js, gulp watch is not working. How I can fix this problem?
Upvotes: 2
Views: 486
Reputation: 954
I'd say your best option is to go ahead and rerun Gulp infrequently or after you add new directories. Seems like the 'gaze' library behind gulp-watch has issues related to this which they plan to resolve in a upcoming release. Ref: https://github.com/shama/gaze/issues/70
Upvotes: 2