-
Notifications
You must be signed in to change notification settings - Fork 100
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
New files in empty or new directory are not watched #56
Comments
Could you try to add current directory to glob option? Like this: |
Sadly didn't work. Just resulted in any new directories in the src directory triggering the watch. But it has no effect on files created in an existing subdirectory. |
This issue belongs to |
@thebuilder [email protected] now uses chokidar, that fixes this issue. |
Awesome! Fra: Vsevolod Strukchinskymailto:[email protected] @thebuilderhttps://github.com/thebuilder [email protected] now uses chokidar, that fixes this issue. — |
Still have the issue with empty folder. gulp.task('clean:images', function () {
return del.sync([
config.img.out + '/**'
]);
});
gulp.task('bundle:images', ['clean:images'], function () {
return gulp.src('assets/img/**/*.*')
.pipe(gulp.dest('dist/img'));
});
gulp.task('watch:images', ['bundle:images'], function () {
return gulp.watch('assets/img/**/*.*', ['bundle:images']);
}); Working fine as soon there is a file in |
@OlivierCuyp Are you actually using the |
I've noticed an issue when creating new files.
I'm using the following watch, to look for all .less files in my src directory.
This works as expected, and new .less files gets detected.
Unless i create a .less file in an existing subdirectory that did not contain any .less files at the watch start. The files will not be detected before i restart the watch.
Is this an issue with globbing in general? If so, any idea of how to work around it?
The text was updated successfully, but these errors were encountered: