Skip to content

Commit

Permalink
feat(cli): clear console by pressing c (#11493) (#11494)
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <[email protected]>
  • Loading branch information
kinfuy and bluwy committed Jan 4, 2023
1 parent 580ba7a commit 1ae018f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/vite/src/node/shortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ const BASE_SHORTCUTS: CLIShortcut[] = [
openBrowser(url, true, server.config.logger)
},
},
{
key: 'c',
description: 'clear console',
action(server) {
server.config.logger.clearScreen('error')
},
},
{
key: 'q',
description: 'quit',
Expand Down

0 comments on commit 1ae018f

Please sign in to comment.