File tree 1 file changed +1
-2
lines changed
packages/@vuepress/core/lib/node
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ module.exports = class App {
38
38
*/
39
39
40
40
constructor ( options = { } ) {
41
+ this . isProd = process . env . NODE_ENV === 'production'
41
42
this . options = options
42
43
this . sourceDir = this . options . sourceDir || path . join ( __dirname , 'docs.fallback' )
43
44
logger . debug ( 'sourceDir' , this . sourceDir )
@@ -459,7 +460,6 @@ module.exports = class App {
459
460
*/
460
461
461
462
async dev ( ) {
462
- this . isProd = false
463
463
this . devProcess = new DevProcess ( this )
464
464
await this . devProcess . process ( )
465
465
const error = await new Promise ( resolve => {
@@ -489,7 +489,6 @@ module.exports = class App {
489
489
*/
490
490
491
491
async build ( ) {
492
- this . isProd = true
493
492
this . buildProcess = new BuildProcess ( this )
494
493
await this . buildProcess . process ( )
495
494
await this . buildProcess . render ( )
You can’t perform that action at this time.
0 commit comments