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

组件样式重复打包问题 #28

Open
Aomd opened this issue Aug 29, 2023 · 1 comment
Open

组件样式重复打包问题 #28

Aomd opened this issue Aug 29, 2023 · 1 comment

Comments

@Aomd
Copy link

Aomd commented Aug 29, 2023

1、使用 Next.js 的 Pages Router
2、按需抽取

在两个不同的page同时引用了 button 组件 打包后发现 button 样式 被打包了两份

希望将公共的代码分离出来,避免重复打包

image

@yunsii
Copy link

yunsii commented Sep 24, 2023

这是按每个页面编译提取的 CSS 结果,再去做这种提取从投入产出比来看感觉没必要。

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