Skip to content
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

[QUESTION] 开启 hash=contenthash 则global.scss无法热更新 #6417

Closed
xmsz-stu opened this issue Jul 25, 2023 · 1 comment
Closed

[QUESTION] 开启 hash=contenthash 则global.scss无法热更新 #6417

xmsz-stu opened this issue Jul 25, 2023 · 1 comment
Labels

Comments

@xmsz-stu
Copy link

Describe the bug

// ice.config.mts
开启hash:"contenthash"

// global.scss
修改则无热更新,需要重新构建

Expected behavior

正常热更新

Actual behavior

无法热更新

Version of ice.js

3.0

Content of build.json or ice.config.mts

No response

Additional context

临时:正式环境才开启hash

@xmsz-stu xmsz-stu added the bug label Jul 25, 2023
@ClarkXia
Copy link
Collaborator

开启 hash 后样式无法热更新是 MiniCssExtractPlugin 的一个问题,目前社区也没有比较好的解法,我们会持续关注相关生态的情况,参考 webpack-contrib/mini-css-extract-plugin#444

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants