fix: print warning when using build.extractCSS.allChunks (#4097)

This commit is contained in:
Koya Ohashi 2018-10-17 06:57:25 +09:00 committed by Pooya Parsa
parent a359424741
commit 657d0a8499

View File

@ -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