Webpack dev server URL should be displayed more prominently
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Feature Proposal
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.
How should this be implemented
A minor change to the logging code:
webpack-dev-server/lib/Server.js
if (this.options.ipc) {
this.logger.info(
`Project is running at: "${
/** @type {import("http").Server} */
(this.server).address()
}"`
);
} else {
const protocol =
/** @type {ServerConfiguration} */
(this.options.server).type === "http" ? "http" : "https";
const { address, port } =
/** @type {import("net").AddressInfo} */
(
/** @type {import("http").Server} */
(this.server).address()
);
Feature Use Case
This change would make Webpack Dev Server easier to use.
Please paste the results of npx webpack-cli info here, and mention other relevant information
System:
OS: Windows 10 10.0.22621
Memory: 3.51 GB / 12.29 GB
Binaries:
Node: 16.15.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 114.0.5735.134
Edge: Spartan (44.22621.1848.0), Chromium (114.0.1823.41)
Internet Explorer: 11.0.22621.1
- Vorherrschende Sprache
- JavaScript
- Sterne
- 7.9k
- Forks
- 1.5k
- Ø Merge
- 2 T. 12 Std.
- Gemergte PRs (30 T.)
- 8
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus webpack/webpack-dev-server
-
Add support for Chrome DevTools WorkspacesEvtl. wieder frei @AnumanyaJaiswal hat das vor 35 Tagen übernommen, und es ist kein Pull Request offen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
webpack/webpack-dev-server#5716 · 2 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
webpack/webpack-dev-server#5679 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
CORS localhost requests are considered invalid host and get blockedEvtl. wieder frei @Jeston10 hat das vor 310 Tagen übernommen, und es ist kein Pull Request offen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
webpack/webpack-dev-server#5603 · 5 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
webpack/webpack-dev-server#4540 · 9 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
webpack/webpack-dev-server#4378 · 29 Kommentare · 3 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in webpack/webpack-dev-server
Ähnliche Issues
-
[bug] 提瓦特记事本原石检测框宽度较窄Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
babalae/bettergi-scripts-list#3905 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug] "Configure Colota" opens Colota with "Invalid configuration: No configuration data in URL"Offen
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 87/100
dedicatedcode/reitti#1445 ·
Maintainer antworten meist innerhalb von 1 Tag
-
New tool: Uncle DeskEvtl. vergeben @github-actions hat das heute übernommen. Offensubmission triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
kausalflow/tools#384 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
-
area: css
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag