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

经过mini-css-extract-plugin后css命中错误 #6749

Closed
Songkunda opened this issue Sep 28, 2024 · 1 comment
Closed

经过mini-css-extract-plugin后css命中错误 #6749

Songkunda opened this issue Sep 28, 2024 · 1 comment
Labels

Comments

@Songkunda
Copy link

Songkunda commented Sep 28, 2024

Version of antd-mobile

5.37.1

Operating system and its version

No response

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

tabbar设置badge后,在通过webpack mini-css-extract-plugin后css样式压缩,且声明顺序被改变,导致开发环境与生产环境样式显示不一致.
开发模式: 正常样式/开发模式下
打包后: 打包后
重现请见dome.zip REAME

Relevant log output

No response

@Songkunda Songkunda added the bug label Sep 28, 2024
@Layouwen
Copy link
Member

如果确定压缩前是正常的, 压缩后 mini-css-extract-plugin 编译逻辑造成的不一致, 建议去该插件的仓库提个 issue 可能解决速度会快一点

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