-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Changes to node_modules should trigger recompilation #186
Comments
Do you mean |
@lacker yes you have to restart when you do While I think installing a node module without |
What about using this? https://github.com/ericclemmons/npm-install-webpack-plugin I think that solves our problem. |
@mxstbr beat me to it, |
That's a pretty slick plugin, #212 is an attempt at implementing it. |
I have a vague recollection that this used to "just work" with npm2, but that it stopped working after I upgraded to npm3. Didn't have a chance to look into that, though. |
This link is dead: // See facebook#186.
import 'react-router'
toindex.js
npm install react-router
index.js
Steps 4 and 5 should not be there. We should find a way to tell webpack that
node_modules
have changed, and it’s worth trying to recompile.Ideally we should not have situations where user is forced to stop the bundler and run
npm start
again. I remember having such issues when switching branches. Hopefully fixing the above use case should be enough, but if you’re familiar with other cases where a restart is required, please write in this thread.The text was updated successfully, but these errors were encountered: