Skip to content

Commit 512a1c1

Browse files
committed
support .vue css hmr fixed #17
1 parent cfe5fa9 commit 512a1c1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

template/webpack.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,20 @@ const config = {
4747
loader: 'vue-loader',
4848
options: {
4949
loaders: {
50-
css: ExtractTextPlugin.extract({
50+
css: ['css-hot-loader'].concat(ExtractTextPlugin.extract({
5151
use: 'css-loader',
5252
fallback: 'style-loader'
53-
}),
53+
})),
5454
{{#less}}
55-
less: ExtractTextPlugin.extract({
55+
less: ['css-hot-loader'].concat(ExtractTextPlugin.extract({
5656
use: ['css-loader', 'postcss-loader', 'less-loader'],
5757
fallback: 'style-loader'
58-
}),
58+
})),
5959
{{/less}}
60-
postcss: ExtractTextPlugin.extract({
60+
postcss: ['css-hot-loader'].concat(ExtractTextPlugin.extract({
6161
use: ['css-loader', 'postcss-loader'],
6262
fallback: 'style-loader'
63-
})
63+
}))
6464
}
6565
}
6666
},

0 commit comments

Comments
 (0)