mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
better build chain
This commit is contained in:
parent
fa97b2af67
commit
37c92e7398
@ -125,7 +125,9 @@ export default class Builder extends Tapable {
|
||||
const manifestPath = join(serverConfig.output.path, 'client-manifest.json')
|
||||
if (!fs.existsSync(bundlePath) || !fs.existsSync(manifestPath)) {
|
||||
console.error('[warning] No build files found, trying to build for production') // eslint-disable-line no-console
|
||||
await this.build()
|
||||
return this.build().then(() => {
|
||||
return this.production()
|
||||
})
|
||||
}
|
||||
const bundle = fs.readFileSync(bundlePath, 'utf8')
|
||||
const manifest = fs.readFileSync(manifestPath, 'utf8')
|
||||
|
Loading…
Reference in New Issue
Block a user