mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
Fix cannot read property of undefined when not building
This commit is contained in:
parent
2e546b2dba
commit
adc7260c76
@ -38,11 +38,11 @@ export default class Generator {
|
||||
// Call before hook
|
||||
await this.nuxt.callHook('generate:before', this, this.options.generate)
|
||||
|
||||
// Add flag to set process.static
|
||||
this.builder.forGenerate()
|
||||
|
||||
// Start build process
|
||||
if (build) {
|
||||
// Add flag to set process.static
|
||||
this.builder.forGenerate()
|
||||
|
||||
// Start build process
|
||||
await this.builder.build()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user