Open Miklet opened 7 years ago
I need to correct myself. I noticed that only files like main.js, app.js or any index.js which is entry module for view is not rerendering his corresponding views.
Currently the HMR implementation can't dynamically update the main, app or router configuration. That's a pretty tricky problem to solve since some of that would involve refreshing your entire app view anyway. We'll track this as a new feature for HMR.
I'm submitting a bug report
Please tell us about your environment:
Operating System: Windows 8.1
Node Version: 6.9.2
NPM Version: 3.9.6
JSPM OR Webpack AND Version webpack 2.5.1
Browser: Chrome 58.0.3029.110
Language: ESNext
Current behavior: HMR does update and replace view-model but without updating corresponding view.
Expected/desired behavior:
Not sure if it is a bug or my mistake. I use webpack-dev-middleware and webpack-hot-middleware along with browser-sync. My webpack config:
BrowserSync configuration:
When I update view-model browser's console seems fine:
The funny thing is that it works for only view changes, it hot reloads correctly.