mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix: print warning when using build.extractCSS.allChunks (#4097)
This commit is contained in:
parent
a359424741
commit
657d0a8499
@ -234,6 +234,11 @@ Options.from = function (_options) {
|
||||
consola.warn('vendor has been deprecated due to webpack4 optimization')
|
||||
}
|
||||
|
||||
// build.extractCSS.allChunks has no effect
|
||||
if (typeof options.build.extractCSS.allChunks !== 'undefined') {
|
||||
consola.warn('build.extractCSS.allChunks has no effect from v2.0.0. Please use build.optimization.splitChunks settings instead.')
|
||||
}
|
||||
|
||||
// TODO: remove when mini-css-extract-plugin supports HMR
|
||||
if (options.dev) {
|
||||
options.build.extractCSS = false
|
||||
|
Loading…
Reference in New Issue
Block a user