fix(cli): disable parallel build behaviour when generating (#8683)

closes #7390
This commit is contained in:
Daniel Roe 2021-01-26 22:10:32 +00:00 committed by GitHub
parent db29fcdbc3
commit 0bcbaacfa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,10 @@ export default {
// Set flag to keep the prerendering behaviour
config._legacyGenerate = true
if (config.build) {
// https://github.com/nuxt/nuxt.js/issues/7390
config.build.parallel = false
}
const nuxt = await cmd.getNuxt(config)

View File

@ -129,6 +129,8 @@ async function getNuxt (args, cmd) {
}
config.buildDir = (config.static && config.static.cacheDir) || path.resolve(config.rootDir, 'node_modules/.cache/nuxt')
config.build = config.build || {}
// https://github.com/nuxt/nuxt.js/issues/7390
config.build.parallel = false
config.build.transpile = config.build.transpile || []
if (!config.static || !config.static.cacheDir) {
config.build.transpile.push('.cache/nuxt')