Skip to content

Commit

Permalink
feat: clear console by pressing c (vitejs#11493)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinfuy authored and kinfuy committed Dec 27, 2022
1 parent 13ac37d commit 5471f45
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',
async action(server) {
server.config.logger.clearScreen('error')
},
},
{
key: 'q',
description: 'quit',
Expand Down

0 comments on commit 5471f45

Please sign in to comment.