Skip to content

Commit dc20080

Browse files
committed
feat($cli): run debug mode without clearing screen
1 parent abc86e8 commit dc20080

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: packages/@vuepress/core/lib/node/dev/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ module.exports = class DevProcess extends EventEmitter {
175175
port: this.port,
176176
displayHost: this.displayHost,
177177
publicPath: this.context.base,
178-
clearScreen: this.context.options.clearScreen
178+
clearScreen: this.context.options.clearScreen || !this.context.options.debug
179179
}])
180180

181181
config = config.toConfig()

Diff for: packages/docs/docs/api/cli.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ See [host](../config/README.md#host).
4040
Open browser when ready.
4141

4242
### --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.
4444

4545
## eject
4646

0 commit comments

Comments
 (0)