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

建议将全局样式单独作为一个文件导入 #16851

Open
ShaoGongBra opened this issue Nov 11, 2024 · 1 comment
Open

建议将全局样式单独作为一个文件导入 #16851

ShaoGongBra opened this issue Nov 11, 2024 · 1 comment

Comments

@ShaoGongBra
Copy link
Contributor

相关平台

鸿蒙

使用框架: React

复现步骤

现在每个页面、组件里面都会吧所有全局样式打包进去,这样会五极其增大代码体积

期望结果

1

实际结果

2

环境信息

Taro CLI 3.6.35 environment info:
@tarojs/plugin-platform-harmony-ets: 4.0.7 => 4.0.7
@hangaoke1
Copy link
Contributor

image
image

私有化改造了下 parse-css-to-stylesheet 和 runtime-est 实现了

This was referenced Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants