I'm use gulp. I have a task
gulp.task('watch', function () {
gulp.watch(['app/**/*.js'], ['scripts']);
});
I have same folder structure:
- app
- modules
- admin
- adminCtrl.js
- home
- homeCtrl.js
- admin
- modules
- app.js
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?