web-infra-dev / rsbuild

The Rspack-based build tool. It's fast, out-of-the-box and extensible.
https://rsbuild.dev/
MIT License
1.79k stars 139 forks source link

[Feature]: provide cli shortcuts #2991

Closed Alkaidcc closed 1 month ago

Alkaidcc commented 3 months ago

What problem does this feature solve?

CLI shortcuts allow users to restart the server, show the server URL, clear the console, etc. It's very convenient. in vite, we can

press r + enter to restart the server
press u + enter to show server url
press o + enter to open in browser
press c + enter to clear console
press q + enter to quit

Does rsbuild have plans to support it?

What does the proposed API look like?

same as vite

chenjiahan commented 3 months ago

Yes, Rsbuild dev server should provide this feature, I will implement it.