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
The watcher walks subdirectories based on the initial directory that is provided in the glob pattern. This can cause serious performance issues.
Take for instance the glob pattern /myproject/package.json . In order to watch this single file, cpx2's watcher will first wall all subdirectories of /myproject. Things can bog down in a hurry if your project contains node_modules.
I'm not sure if there's an easy fix. Possibly a better approach that using minimatch would be to use glob itself to return the list of directories and files.
Let me know if you have any possible workarounds.
The text was updated successfully, but these errors were encountered:
Sorry I totally missed this. I added glob-gitignore a while ago that can efficiently add gitignore style rules along side the glob. That might help out a bit.
Thanks, yes I've used the gitignore for some cases. I've worked around my performance issues manually. Maybe one day I'll find some free time to contribute some performance improvements. I'll close the issue for now.
The watcher walks subdirectories based on the initial directory that is provided in the glob pattern. This can cause serious performance issues.
Take for instance the glob pattern
/myproject/package.json
. In order to watch this single file, cpx2's watcher will first wall all subdirectories of /myproject. Things can bog down in a hurry if your project contains node_modules.I'm not sure if there's an easy fix. Possibly a better approach that using minimatch would be to use
glob
itself to return the list of directories and files.Let me know if you have any possible workarounds.
The text was updated successfully, but these errors were encountered: