Skip to content

Commit 1ae018f

Browse files
kinfuybluwy
andauthored
feat(cli): clear console by pressing c (#11493) (#11494)
Co-authored-by: Bjorn Lu <[email protected]>
1 parent 580ba7a commit 1ae018f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/vite/src/node/shortcuts.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ const BASE_SHORTCUTS: CLIShortcut[] = [
112112
openBrowser(url, true, server.config.logger)
113113
},
114114
},
115+
{
116+
key: 'c',
117+
description: 'clear console',
118+
action(server) {
119+
server.config.logger.clearScreen('error')
120+
},
121+
},
115122
{
116123
key: 'q',
117124
description: 'quit',

0 commit comments

Comments
 (0)