M
M
myskypesla2017-09-27 03:44:34
Vue.js
myskypesla, 2017-09-27 03:44:34

Why does a reboot occur instead of Hot Module Replacement?

Hello.
I do the command:
vue init webpack my-project
Next, I edit any .vue file and some element is inserted without reloading the page, that is, webpack's HMR is triggered. In this init, webpack version 2.7.0 is set by default, I install the latest version 3.6.0 and the HMR module stops working, i.e. even if the CSS changes, the browser reloads. Didn't touch any configs. How to fix, does anyone have a solution? I will be grateful!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lavezzi1, 2017-09-27
@myskypesla

This problem is exactly the transition from webpack 2 to webpack 3.x.
Here is a pull request that solves the problem: https://github.com/vuejs-templates/webpack/pull/891
And here is the issue of the problem https://github.com/vuejs-templates/webpack/issues/751

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question