Version
15.7.1
Reproduction link
https://github.com/alancnet/vue-style-loader-bug
Steps to reproduce
Steps to reproduce
npm install
npm start
- Visit http://localhost:8081 in your browser.
- You should see "Hello World" in red.
- Open
src/app.vue
- Replace
color: red; with color: blue; and save.
- Notice the color in the browser does not change.
How to fix
- Open
webpack.config.js
- Replace
loader: 'vue-style-loader', with loader: '@alancnet/vue-style-loader',
- Repeat steps 1-6 above.
- Notice the color changes.
or
- Open
webpack.config.js
- Replace
const shadowMode = true with const shadowMode = false
- Repeat steps 1-6 above.
- Notice the color changes.
What is expected?
The styles should update with hot module replacement
What is actually happening?
The styles do not update
I have a pull request that fixes this: vuejs/vue-style-loader#41