vue-style-loader bug
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.