-
Notifications
You must be signed in to change notification settings - Fork 99
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
How to filter files to watch? #137
Comments
For example i've got a folder with css-files and i'd like to watch for them. But i'd like to not watch for one css-file. watch('./folder-to-watch/**/*.css', function(vinyl) {
log(vinyl.event);
}); Where (or how) should i add the path to ignored file? |
As node-glob docs says: watch(['!folder-to-watch/that-one.css','folder-to-watch/**/*.css'], function(vinyl) {
log(vinyl.event);
}); |
Yeah, thanks. It doesn't work, if i use './' in glob pattern( |
@artem-malko it is known bug with |
Ok, but could it helps, to set dot to true? |
@artem-malko I don't think chokidar uses node-glob for path's actually, so there is no |
Excuse me, but one more question) What the difference between 'folder-name/.css' and './folder-name/.css' if we have a fs like this:
|
@artem-malko I'm not aware of any difference between |
Ok, thanks a lot) |
No description provided.
The text was updated successfully, but these errors were encountered: