-
问题antd 包的 index 自动导入了 style 文件,导致样式重复加载(比如使用 antd 的其他主题包)。现在为了避免这个问题,只能 建议这个 style 可以打成一个 formily-antd.css/less 文件让用户选择是否要引入所有的样式,也可以让用户自己配置 babel 按需加载。 |
Beta Was this translation helpful? Give feedback.
Answered by
janryWang
May 23, 2021
Replies: 1 comment 1 reply
-
为啥会重复打包,less会做去重的,如果你希望按需引入样式,可以配置ts-import-plugin |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
janryWang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
为啥会重复打包,less会做去重的,如果你希望按需引入样式,可以配置ts-import-plugin