Open
Description
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;
withcolor: blue;
and save. - Notice the color in the browser does not change.
How to fix
- Open
webpack.config.js
- Replace
loader: 'vue-style-loader',
withloader: '@alancnet/vue-style-loader',
- Repeat steps 1-6 above.
- Notice the color changes.
or
- Open
webpack.config.js
- Replace
const shadowMode = true
withconst 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
Metadata
Metadata
Assignees
Labels
No labels