alibaba / alibaba/ice

开启hash以后控制台会找不到data-loader报错

Open
#6,930 3 comments 0 reactions 1 assignee Claimed by @ClarkXia View on GitHub
bug
Dominant language
TypeScript
Stars
18.6k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

pnpm run dev的时候会生成loader文件,但是带hash的,但是浏览器访问的是不带hash的,就会导致404
![image](https://github.com/alibaba/ice/assets/50658231/7c176057-481c-42a9-b7f1-c2487bd70957)
![image](https://github.com/alibaba/ice/assets/50658231/a912b74f-176a-4778-8562-6a32b234c3e8)

### Expected behavior

能读取到data-loader-hash.js

### Actual behavior

_No response_

### Version of ice.js

v3.3.0

### Content of build.json or ice.config.mts

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.