You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Webpack dev server URL should be displayed more prominently #4907
I work in a large monorepo, so when I launch the Webpack dev server, the localhost URL is unpredictable. Different apps may use different ports.
Webpack helpfully prints the URL into the console log, so that you can easily click on it to launch the Chrome web browser. It looks like this:
Currently this message is only printed once. After several incremental rebuilds, the message scrolls off the screen and gets lost. The workaround is to kill and restart the dev server, but for large projects this can mean waiting several minutes for initialization.
Suggested improvement: After every incremental rebuild, print the URL last.
Suggested improvement: After every incremental rebuild, print the URL last.
We've done this before but got a lot of feedback that it gets in the way, so we did it once, I'm afraid we can't please everyone, maybe only under the option
@alexander‑akait
I’ve opened a PR implementing the keypress‑triggered URL reprint behind the printUrlOnKeypress option: #5489
Feel free to take a look and let me know if you’d like any changes!
Activity
alexander-akait commentedon Jun 20, 2023
We've done this before but got a lot of feedback that it gets in the way, so we did it once, I'm afraid we can't please everyone, maybe only under the option
octogonz commentedon Jun 20, 2023
Making it optional sounds reasonable. 👍
I'm curious what it gets in the way of, though?
Another idea would be for reprinting to be triggered by some keystroke such as SPACE in the shell window.
alexander-akait commentedon Jun 20, 2023
Some developers consider it spammy and annoying
Yeah, I think it is a good idea too, feel free to send a PR
Anubhab2003 commentedon Jan 3, 2025
Hey I am Interested in contributing this issue, How to get started ?
HTGA75 commentedon May 6, 2025
I’ve made a small change so the Dev Server URL shows up only when the user presses ‘u’, with a clear prompt. Would you be open to a PR for this?
alexander-akait commentedon May 6, 2025
@HTGA75 I am fine with it under the option
HTGA75 commentedon May 7, 2025
@alexander‑akait
I’ve opened a PR implementing the keypress‑triggered URL reprint behind the printUrlOnKeypress option: #5489
Feel free to take a look and let me know if you’d like any changes!