What happens?
静态资源的输出文件路径被硬编码且无法用配置修改
|
opts.staticPathPrefix !== undefined ? opts.staticPathPrefix : 'static/', |
Mini Showcase Repository(REQUIRED)
https://github.com/umijs/umi/compare/bug/report-dist-static?expand=1
cd examlples/with-antd
npm run build
ls -al dist
ls -al dist/static
静态资源出处路径硬编码为 dist/static, 这导致蚂蚁内网基于 render 部署的应用,静态资源加载失败,render 要求所有产物是在 dist 下是铺平的
How To Reproduce
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
Context
- Umi Version:
- Node Version:
- Platform:
What happens?
静态资源的输出文件路径被硬编码且无法用配置修改
umi/packages/bundler-webpack/src/config/config.ts
Line 88 in abd1355
Mini Showcase Repository(REQUIRED)
https://github.com/umijs/umi/compare/bug/report-dist-static?expand=1
cd examlples/with-antd npm run build ls -al dist ls -al dist/static静态资源出处路径硬编码为 dist/static, 这导致蚂蚁内网基于 render 部署的应用,静态资源加载失败,render 要求所有产物是在 dist 下是铺平的
How To Reproduce
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
Context