mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12: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'
|
loader: 'resolve-url-loader'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.options.build.extractCSS) {
|
if (this.options.build.extractCSS && !isVueLoader && !this.options.dev) {
|
||||||
return ExtractTextPlugin.extract({
|
return ExtractTextPlugin.extract({
|
||||||
fallback: vueStyleLoader,
|
fallback: vueStyleLoader,
|
||||||
use: [
|
use: [
|
||||||
|
Loading…
Reference in New Issue
Block a user