Skip to content

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