-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
why watch files only in the same folder? #1480
Comments
This instance of chokidar is for watching the content base only. Do you bundle your |
@michael-ciniawsky ok, actually I want to implement MHR, and then I have many pug pages as static files. So when I modify one of pug file, I want dev-server to reload browser. At the same time, I modify sass file, It can be Hot reload(not reload browser). I found the same issue here (#1271).
I try to implement it, but it doesn't work. because one of the options depth is 0.
|
@evilebottnawi Closed by #1697? |
@glen-84 no, we just relax depth in public directory, but developers want to watch files in other directories. I am wrong what we need major here. |
@evilebottnawi You can watch in other directories, but the API is private ( Can you make |
@glen-84 better do this using option |
Oh, i was wrong, you can set array of |
Code
Expected Behavior
I want to watch many pug files in different folders, like this
src/pug/**/*.pug
Actual Behavior
It's only watching files in the same folder, like this like this
src/pug/pages/*.pug
orsrc/pug/components/*.pug
For Bugs; How can we reproduce the behavior?
For Features; What is the motivation and/or use-case for the feature?
I don't know why to set depth to 0 in the options. it is possible to modify depth to be default, then chokidar can watch files in different folders.
The text was updated successfully, but these errors were encountered: