We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
求教
The text was updated successfully, but these errors were encountered:
主要是我不知道要到哪个生命周期钩子里去预渲染一遍页面来获取 style cache 比较合适...想着既然是抽离样式按需导出的话,最好应该在 building 阶段完成,但 building 的时候又怎么去 renderToString 呢?
Sorry, something went wrong.
目前没什么好方案,欢迎来PR
我简单实现了一个 demo,感兴趣可以看看,按需生成 → nuxt-antd-css-demo/tree/demand。
如果可以,我想我可以提一个 pr 来迁移用到的组件,同时在 README 中加以说明。
核心用到的组件 → nuxt-antd-css-demo/blob/demand/components/AExtractStyle.vue
我简单实现了一个 demo,感兴趣可以看看,按需生成 → nuxt-antd-css-demo/tree/demand。 如果可以,我想我可以提一个 pr 来迁移用到的组件,同时在 README 中加以说明。 核心用到的组件 → nuxt-antd-css-demo/blob/demand/components/AExtractStyle.vue
@markthree 可以提交一个PR过来,nuxt3用到的都是esm模式,所以建议使用esm来测试,目前antdvnuxt插件也是仅输出es包,尽可能的保持一致性,支持可配置开启
update 1.4.1
No branches or pull requests
求教
The text was updated successfully, but these errors were encountered: