mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
fix(cli): disable parallel build behaviour when generating (#8683)
closes #7390
This commit is contained in:
parent
db29fcdbc3
commit
0bcbaacfa6
@ -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)
|
||||
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user