mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
call forGenerate before modules ready
This commit is contained in:
parent
d589bc5819
commit
7feeedd432
@ -26,12 +26,14 @@ export default class Generator extends Tapable {
|
||||
const s = Date.now()
|
||||
let errors = []
|
||||
|
||||
// Add flag to set process.generate
|
||||
this.builder.forGenerate()
|
||||
|
||||
// Wait for nuxt be ready
|
||||
await this.nuxt.ready()
|
||||
|
||||
// Start build process
|
||||
if (build) {
|
||||
this.builder.forGenerate() // Add flag to set process.generate
|
||||
await this.builder.build()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user