-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Vue router and hot reload #129
Comments
Vue hot-reload works through On a higher level, Webpack HMR works based on modules, so there's no way to magically hot-reload an inline component defined in a random file. |
Ok thanks Evan now it's clear. Probably a couple of lines about this in the doc would help other users as well |
@yyx990803 I have tried to follow your recommendations but it seems that the hot reloading is not handled properly check the video: |
Hi thanks for this awesome cli tool, I landed here thanks to an official vuejs tweet. I have followed the suggestion but despite the 50 npm dependencies required by the webpack template I wasn't able to get HMR in my app where I use the vue router to render my components. I have created a simple repo where anytime I update a component the page gets reloaded
https://github.com/GianlucaGuarini/vue-hmr-test/blob/master/src/main.js
Am I doing something wrong? Any hint about how achieving HMR also with vue-router and vuex?
The text was updated successfully, but these errors were encountered: