Skip to content

Commit 59b106a

Browse files
achretienhaoqunjiang
authored andcommitted
feat: enable hmr for 'mini-css-extract-plugin' in dev (#4011)
1 parent 2e417b0 commit 59b106a

File tree

1 file changed

+1
-0
lines changed
  • packages/@vue/cli-service/lib/config

1 file changed

+1
-0
lines changed

packages/@vue/cli-service/lib/config/css.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ module.exports = (api, options) => {
100100
.use('extract-css-loader')
101101
.loader(require('mini-css-extract-plugin').loader)
102102
.options({
103+
hmr: !isProd,
103104
publicPath: cssPublicPath
104105
})
105106
} else {

0 commit comments

Comments
 (0)