publicPath配置'./' 打包后图片路径访问问题
Open
- Dominant language
- TypeScript
- Stars
- 18.6k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
## publicPath配置'./' 打包后图片路径访问问题
ice3.4 publicPath配置'./' 不生效,并且在scss文件中引入的图片资源,页面访问的请求里会在assets 目录前拼接上css
> 希望打包之后能通过https://xxx/contentpath/访问
>
> [AI-search的副本.zip](https://github.com/user-attachments/files/19953677/AI-search.zip)
_Originally posted by @maixiachen in [#7089](https://github.com/alibaba/ice/issues/7089#issuecomment-2837562724)_
Contributor guide
Research direction
Reproduce an ice 3.4 build with publicPath set to './' and an image imported from an SCSS file, then inspect the generated asset URLs. Done means the deployed app works under /contentpath/ and image requests do not incorrectly prefix assets with css.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scss, webpack
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100