mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix: disable "analyze" for nuxt generate (#4975)
This commit is contained in:
parent
31cb18737b
commit
574a2eb293
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user