feat: print Dev Server URL on 'u' keypress to reduce terminal clutter by HTGA75 · Pull Request #5489 · webpack/webpack-dev-server
- This is a feature
For Bugs and Features; did you add new tests?
No new tests. This is a developer‑experience enhancement only.
Motivation / Use-Case
Sometimes the Dev Server URL scrolls out of view in busy terminals, making it hard to grab.
This change adds a new printUrlOnKeypress option (default false) that, when enabled, registers a keypress listener. Pressing u in the terminal will reprint the current Dev Server URL, reducing noisy automatic logs while still keeping the URL readily accessible.
Addresses discussion in #4907
Breaking Changes
None
Additional Info
- The option is gated behind:
devServer: { printUrlOnKeypress: true }