Skip to content

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!

@codecov
Copy link

codecov bot commented May 21, 2025

Codecov Report

❌ Patch coverage is 15.38462% with 11 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@ddf7db3). Learn more about missing BASE report.

Files with missing lines Patch % Lines
lib/Server.js 15.38% 8 Missing and 3 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5489   +/-   ##
=======================================
  Coverage        ?   70.81%           
=======================================
  Files           ?        5           
  Lines           ?     1422           
  Branches        ?      557           
=======================================
  Hits            ?     1007           
  Misses          ?      356           
  Partials        ?       59           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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