mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 14:41:25 +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
|
// Call before hook
|
||||||
await this.nuxt.callHook('generate:before', this, this.options.generate)
|
await this.nuxt.callHook('generate:before', this, this.options.generate)
|
||||||
|
|
||||||
// Add flag to set process.static
|
|
||||||
this.builder.forGenerate()
|
|
||||||
|
|
||||||
// Start build process
|
|
||||||
if (build) {
|
if (build) {
|
||||||
|
// Add flag to set process.static
|
||||||
|
this.builder.forGenerate()
|
||||||
|
|
||||||
|
// Start build process
|
||||||
await this.builder.build()
|
await this.builder.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user