Webpack dev server URL should be displayed more prominently
维护者通常 1 天内回复
评估
这个 Issue 还没有评估数据。
描述
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
- 主要语言
- JavaScript
- 星标
- 7.9k
- 派生
- 1.5k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 8
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
webpack/webpack-dev-server 的其他 Issue
-
Add support for Chrome DevTools Workspaces可能重新可做 @AnumanyaJaiswal 于 35 天前认领,目前没有进行中的 PR。 未关闭
难度 4/5 3-5 天 新手友好度 45/100
webpack/webpack-dev-server#5716 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
webpack/webpack-dev-server#5679 · 3 条评论 ·
维护者通常 1 天内回复
-
CORS localhost requests are considered invalid host and get blocked可能重新可做 @Jeston10 于 310 天前认领,目前没有进行中的 PR。 未关闭
难度 3/5 1-2 天 新手友好度 52/100
webpack/webpack-dev-server#5603 · 5 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 35/100
webpack/webpack-dev-server#4540 · 9 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
webpack/webpack-dev-server#4378 · 29 条评论 · 3 个 reaction ·
维护者通常 1 天内回复
查看 webpack/webpack-dev-server 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
babalae/bettergi-scripts-list#3905 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug] "Configure Colota" opens Colota with "Invalid configuration: No configuration data in URL"未关闭
难度 1/5 1-3 小时 新手友好度 87/100
dedicatedcode/reitti#1445 ·
维护者通常 1 天内回复
-
New tool: Uncle Desk可能已有人在做 @github-actions 今天认领。 未关闭submission triage
难度 1/5 1 小时以内 新手友好度 85/100
kausalflow/tools#384 · 1 条评论 ·
维护者通常 1 天内回复
-
good first issue
难度 2/5 1-3 小时 新手友好度 67/100
-
area: css
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复