mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-12 03:38:07 +00:00
chore(options): vendor backward compability with nuxt 1.x (#3218)
This commit is contained in:
parent
238480c322
commit
320d1ba283
@ -182,6 +182,11 @@ Options.from = function (_options) {
|
|||||||
options.build.stats = false
|
options.build.stats = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Vendor backward compability with nuxt 1.x
|
||||||
|
if (!options.build.vendor) {
|
||||||
|
options.build.vendor = []
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: remove when mini-css-extract-plugin supports HMR
|
// TODO: remove when mini-css-extract-plugin supports HMR
|
||||||
if (options.dev) {
|
if (options.dev) {
|
||||||
options.build.extractCSS = false
|
options.build.extractCSS = false
|
||||||
|
Loading…
Reference in New Issue
Block a user