File tree 3 files changed +3
-3
lines changed
@vuepress/core/lib/node/dev
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ module.exports = class DevProcess extends EventEmitter {
175
175
port : this . port ,
176
176
displayHost : this . displayHost ,
177
177
publicPath : this . context . base ,
178
- clearScreen : this . context . options . clearScreen
178
+ clearScreen : this . context . options . clearScreen || ! this . context . options . debug
179
179
} ] )
180
180
181
181
config = config . toConfig ( )
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ See [host](../config/README.md#host).
40
40
Open browser when ready.
41
41
42
42
### --no-clear-screen
43
- Do not clear screen when dev server is ready.
43
+ Do not clear screen when dev server is ready. Note that dev server will not clear screen if you start it in debug mode.
44
44
45
45
## eject
46
46
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ vuepress <command> targetDir [options]
40
40
当服务端准备就绪时自动打开浏览器。
41
41
42
42
### --no-clear-screen
43
- 当 dev server 就绪时不清除屏幕。
43
+ 当 dev server 就绪时不清除屏幕。请注意dev server不會在调试模式下清除屏幕。
44
44
45
45
## eject
46
46
You can’t perform that action at this time.
0 commit comments