Skip to content

feat: print Dev Server URL on 'u' keypress to reduce terminal clutter #5489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HTGA75
Copy link

@HTGA75 HTGA75 commented May 7, 2025

  • 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
    }

@HTGA75
Copy link
Author

HTGA75 commented May 13, 2025

👋 Hey @alexander-akait (or @webpack/collaborators), my branch is now up-to-date. Could someone please approve and run the CI workflows, and take a look at the changes? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant