mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
fix HMR for extractCSS on dev
This commit is contained in:
parent
5d2429459a
commit
f24d41e52b
@ -58,7 +58,7 @@ export default function styleLoader (ext, loaders = [], isVueLoader = false) {
|
||||
loader: 'resolve-url-loader'
|
||||
}
|
||||
|
||||
if (this.options.build.extractCSS) {
|
||||
if (this.options.build.extractCSS && !isVueLoader && !this.options.dev) {
|
||||
return ExtractTextPlugin.extract({
|
||||
fallback: vueStyleLoader,
|
||||
use: [
|
||||
|
Loading…
Reference in New Issue
Block a user