mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
hotfix: disable extract-css-chunks-webpack-plugin in dev mode (#4888)
This commit is contained in:
parent
792e9f4763
commit
2b30915950
@ -291,6 +291,10 @@ export function getNuxtConfig(_options) {
|
||||
options.build.optimization.minimize = !options.dev
|
||||
}
|
||||
|
||||
if (options.dev) {
|
||||
options.build.extractCSS = false
|
||||
}
|
||||
|
||||
// Enable optimizeCSS only when extractCSS is enabled
|
||||
if (options.build.optimizeCSS === undefined) {
|
||||
options.build.optimizeCSS = options.build.extractCSS ? {} : false
|
||||
|
Loading…
Reference in New Issue
Block a user