-
Notifications
You must be signed in to change notification settings - Fork 161
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
Webpack 2 and Hot module replacement #27
Comments
@thangngoc89 I have tested with webpack 2. I'm not sure if I've tested with webpack 2's hmr. I'll take a look. |
Thank you! |
@thangngoc89 @MoOx I'll have a change up soon that'll fix this. The problem is HardSource currently runs a pre-compile to detect module's harmony imports and exports changing (cause it means it needs to invalidate the dependency and rebuild it). That pre-compile is interfering with HMR leading it to think no change happened in the build. Cool thing from this I found that webpack 2 adds a new entry point ( |
@mzgoddard Thank you. You're awesome |
We're migrating to webpack 2 at Phenomic but HMR isn't working for us. Did you test with webpack 2 and HMR ?
Our branch is here https://github.com/MoOx/phenomic/tree/webpack-2
Our dev-server is an express instance with webpack-dev-middleware and webpack-hot-middleware
Behaviours:
/**.hot-update.json
not found/__webpack_hmr
I can see that the new hash for hot-update is A. Client fetches/A.hot-update.json
but it's a route not found as I said above.A.hot-update.json
The text was updated successfully, but these errors were encountered: