fix: disable "analyze" for nuxt generate (#4975)

This commit is contained in:
Alexander Lichter 2019-02-07 15:00:41 +00:00 committed by Pooya Parsa
parent 31cb18737b
commit 574a2eb293

View File

@ -36,6 +36,13 @@ export default {
},
async run(cmd) {
const config = await cmd.getNuxtConfig({ dev: false })
// Disable analyze if set by the nuxt config
if (!config.build) {
config.build = {}
}
config.build.analyze = false
const nuxt = await cmd.getNuxt(config)
const generator = await cmd.getGenerator(nuxt)