behavior of static and historyApiFallback
维护者通常 1 天内回复
还没有人认领这个 Issue。
- #5149 来自 @Swapnilden —— 已关闭,未合并
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- express, javascript, webpack
调研方向
阅读关于 pull request 2670 的链接讨论,并检查 lib/Server.js 第 548–559 行附近添加 middleware 功能的位置。然后跟踪静态服务和 historyApiFallback 的配置方式,并考虑 issue 中描述的兼容性与性能权衡。完成的标准是找出一种只应用一次 middleware 的方法,或记录一次有意进行的破坏性变更及其影响。
由索引模型根据 Issue 内容生成。
描述
Expected Behavior
Static serving middleware for the dev server should only need to be applied to the express server once via this.app.use(...)
Actual Behavior
static middleware is applied to the express server multiple times in order to make historyApiFallback work as expected. This is explained here: https://github.com/webpack/webpack-dev-server/pull/2670#discussion_r464946541
A similar thing seems to have been added for the middleware feature as seen here, as it is added multiple times:
Solution
We need to find a way to either apply all of this middleware once without having any breaking changes, or have intentional slight breaking changes while only applying the middleware once. We should also look into if applying the same middleware many times causes performance losses, or if it is an acceptable thing to do.
- 主要语言
- 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 天内回复
-
Webpack dev server URL should be displayed more prominently可能已有人在做 @snitin315 于 805 天前认领。 未关闭
webpack/webpack-dev-server#4907 · 7 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 35/100
webpack/webpack-dev-server#4540 · 9 条评论 ·
维护者通常 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 天内回复