Closed UROjQ6r80p closed 10 months ago
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).
Yup, thanks I'll try.
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, butsrc/components/file.js
,src/something/nested/components/file.js
should not be ignored.I tried
!
but it doesn't work.