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 dc20080
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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

0 comments on commit dc20080

Please sign in to comment.