chore(options): vendor backward compability with nuxt 1.x (#3218)

This commit is contained in:
Ricardo Gobbo de Souza 2018-04-12 17:42:50 -03:00 committed by Pooya Parsa
parent 238480c322
commit 320d1ba283

View File

@ -182,6 +182,11 @@ Options.from = function (_options) {
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
if (options.dev) {
options.build.extractCSS = false