mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
refactor: disable extractCSS in dev due to plugin not supports HMR
This commit is contained in:
parent
df939be712
commit
8beb1b3525
@ -174,5 +174,9 @@ Options.from = function (_options) {
|
|||||||
options.generate.fallback = '404.html'
|
options.generate.fallback = '404.html'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: remove when mini-css-extract-plugin supports HMR
|
||||||
|
if (options.dev) {
|
||||||
|
options.build.extractCSS = false
|
||||||
|
}
|
||||||
return options
|
return options
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user