You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to make nodemon ignore everything in a folder, except nested sub directories? I want to ignore everything in src folder except every folder with name components (nested etc.)
so src/file.js, src/something/nested/file.js should be ignored,
but src/components/file.js, src/something/nested/components/file.js should not be ignored.
This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up.
Thank you for contributing <3
@UROjQ6r80p honestly I'm not sure what the right globbing pattern is, but underneath it all, nodemon uses Chokidar for watch and (some) ignoring and that uses code that follows minimatch syntax, so you're best referring to those docs: https://github.com/micromatch/picomatch#advanced-globbing (and if I were you, I'd probably get the minimatch in a repl and see if I can get something that matches).
How to make nodemon ignore everything in a folder, except nested sub directories? I want to ignore everything in src folder except every folder with name
components
(nested etc.)so
src/file.js
,src/something/nested/file.js
should be ignored,but
src/components/file.js
,src/something/nested/components/file.js
should not be ignored.I tried
!
but it doesn't work.The text was updated successfully, but these errors were encountered: