-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
为 app.css 的引入增加 hash #16498
Labels
T-h5
Target - 编译到 H5
Comments
This was referenced Sep 14, 2024
// config/index.js
|
Works like a charm, Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个特性解决了什么问题?
请问 taro build:h5 之后的 html 页面,引用 app.css 时,有办法设置一个 hash 吗?原因是改了 app.css 之后,浏览器缓存导致不能及时生效。
代码里是通过 import 引入的:
这个 API 长什么样?
默认开启 hash
即可以是这样的引入:
The text was updated successfully, but these errors were encountered: