Skip to content

Make watchify ignore node_modules by default #100

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joguSD
Copy link

@joguSD joguSD commented Oct 21, 2016

For any project with more than a few dependencies polling on the node_modules directory requires a lot of cpu (nearly 100% in my vm). Adding ignoreWatch: true to watchify's options to enable the following ignore pattern: ignoreWatch: ['**/node_modules/**'] seems like a more sane default. This drastically reduces CPU usage when polling is enabled.

Related to #96, but doesn't directly fix it.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 90.95% when pulling 734d213 on joguSD:master into 83a71d2 on ForbesLindesay:master.

1 similar comment
@coveralls
Copy link

coveralls commented Oct 21, 2016

Coverage Status

Coverage remained the same at 90.95% when pulling 734d213 on joguSD:master into 83a71d2 on ForbesLindesay:master.

@ForbesLindesay
Copy link
Owner

I still want us to detect changes to node_modules by default, maybe we could be a bit more clever about it though (maybe only poll every 5 seconds or something).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants