mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
Rename process.generate to process.static
This commit is contained in:
parent
42d967c27b
commit
c1d2d4c626
@ -27,7 +27,7 @@ export default class Builder extends Tapable {
|
||||
constructor (nuxt) {
|
||||
super()
|
||||
this.nuxt = nuxt
|
||||
this.generate = false // Flag to know if the build is for a generated app
|
||||
this.isStatic = false // Flag to know if the build is for a generated app
|
||||
this.options = nuxt.options
|
||||
|
||||
// Fields that set on build
|
||||
@ -90,7 +90,7 @@ export default class Builder extends Tapable {
|
||||
}
|
||||
|
||||
forGenerate() {
|
||||
this.generate = true
|
||||
this.isStatic = true
|
||||
}
|
||||
|
||||
async build () {
|
||||
|
@ -104,7 +104,7 @@ export default function webpackClientConfig () {
|
||||
'process.env.VUE_ENV': JSON.stringify('client'),
|
||||
'process.browser': true,
|
||||
'process.server': false,
|
||||
'process.generate': this.generate
|
||||
'process.static': this.isStatic
|
||||
}))
|
||||
)
|
||||
|
||||
|
@ -45,7 +45,7 @@ export default function webpackServerConfig () {
|
||||
'process.env.VUE_ENV': JSON.stringify('server'),
|
||||
'process.browser': false,
|
||||
'process.server': true,
|
||||
'process.generate': this.generate
|
||||
'process.static': this.isStatic
|
||||
}))
|
||||
])
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user