Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

> 我引入了样式没有生效 这是我的项目地址:https://github.com/junxyue/cxh-ui.git #19

Closed
Hui-cx opened this issue Sep 13, 2023 · 0 comments

Comments

@Hui-cx
Copy link

Hui-cx commented Sep 13, 2023

          > 我引入了样式没有生效 这是我的项目地址:https://github.com/junxyue/cxh-ui.git
  1. 样式问题:移除 package.json 中的 sideEffects 字段,这个字段影响了样式的引入,被 tree shaking 掉了,可以仔细了解一下这个字段
  2. 代码展示问题:可能是因为你是使用相对路径引入导致的,后面可以优化成用包名展示 如何引入组件 dumi
  3. 组件 tsx 里不需要引入样式

希望可以帮助到你

Originally posted by @worldzhao in #4 (comment)

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

No branches or pull requests

2 participants