Skip to content

Commit

Permalink
feat($cli): run debug mode without clearing screen
Browse files Browse the repository at this point in the history
  • Loading branch information
billyyyyy3320 committed Jan 7, 2020
1 parent abc86e8 commit aa450de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@vuepress/core/lib/node/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ module.exports = class DevProcess extends EventEmitter {
port: this.port,
displayHost: this.displayHost,
publicPath: this.context.base,
clearScreen: this.context.options.clearScreen
clearScreen: this.context.options.clearScreen || !this.context.options.debug
}])

config = config.toConfig()
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/docs/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ See [host](../config/README.md#host).
Open browser when ready.

### --no-clear-screen
Do not clear screen when dev server is ready.
Do not clear screen when dev server is ready. Note that dev server will not clear screen if you start it in debug mode.

## eject

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/docs/zh/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ vuepress <command> targetDir [options]
当服务端准备就绪时自动打开浏览器。

### --no-clear-screen
当 dev server 就绪时不清除屏幕。
当 dev server 就绪时不清除屏幕。请注意dev server不會在调试模式下清除屏幕。

## eject

Expand Down

0 comments on commit aa450de

Please sign in to comment.