Skip to content

Commit

Permalink
fix: disable "analyze" for nuxt generate (#4975)
Browse files Browse the repository at this point in the history
  • Loading branch information
manniL authored and pi0 committed Feb 7, 2019
1 parent 31cb187 commit 574a2eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/cli/src/commands/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 574a2eb

Please sign in to comment.