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

nextjs page 路由模式,按需抽取支持 hashPriority="high" #48545

Closed
poi-mashiro opened this issue Apr 19, 2024 · 2 comments
Closed

nextjs page 路由模式,按需抽取支持 hashPriority="high" #48545

poi-mashiro opened this issue Apr 19, 2024 · 2 comments

Comments

@poi-mashiro
Copy link

What problem does this feature solve?

接手了一个现有代码,里面的样式都是基于 hashPriority="high",seo 要求 ssr 出来的 html 里面不要有大片内联样式,根据官方文档进行抽离结果 css 样式都是基于 :where 的,样式权重不够

What does the proposed API look like?

希望 extractStyle 能支持 hashPriority="high"

@poi-mashiro
Copy link
Author

"next": "^13.5.6",
"react": "18.2.0",
"antd": "^5.16.2",
"@ant-design/cssinjs": "^1.20.0",

@poi-mashiro
Copy link
Author

yarn 和缓存文件导致 antd 和 @ant-design/cssinjs 版本对不上导致的实际上抽离文件是空内容,其实已经支持 hashPriority="high"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant