- Notifications
You must be signed in to change notification settings - Fork96
Add support for glob matching when watching dir-dependency#391
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This extendspostcss#383 to pass glob information on to chokidar, with the intention of reducing outputs when unrelated files are modified
I'm not closed to this idea; are there any plugins that use this |
It is part of standardhttps://github.com/postcss/postcss/blob/main/docs/guidelines/runner.md#31-rebuild-when-dependencies-change |
Ah, wasn't up on the standards changes, in that case, LGTM. |
This extends#383 to pass glob information on to chokidar, with the intention of reducing outputs when unrelated files are modified.
In my test example the output should only be triggered when files matching the
glob: '**/*.css'
are modified, but not when theunrelated.md
file is modified.A real world example where I thought watching a whole directory without applying the glob could be problematic, would be a full stack project where tailwind checks backend templates by file type for purging:
In this case I really only want to trigger rebuilds when changing one of the listed file types.
Chokidar supports all this out of the box btw.
Let me know what you think and thanks for the great project!
Cheers!