Add a hook after rendering the vue server component to modify html content #1098
Groupguanfang
started this conversation in
Proposal
Replies: 2 comments 1 reply
-
Currently trying to use naive-ui inside an Astro project. Also running into these issues: it is not possible to use SSR/SSG at the moment. @Groupguanfang have you found any workarounds? I've set all my components to |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
Summary
Now
@astrojs/vue
only provides anappEntrypoint
attribute, which specifies the path of an entry file, and then modifies the rootvue
component:This function will be called here through the virtual module. This function will be called here through the virtual module. Now can we add a closure function to this function so that it can directly modify the pure html string after
renderToString
render in the closure function?Background & Motivation
I using naive-ui, In naive ui, it needs to collect css through the root vue component and attach it to html, like the method in their official website: https://www.naiveui.com/en-CN/os-theme/docs/vite-ssge.
If astro implements this proposal, then it will be convenient to integrate naive ui like this:
Goals
A concise, bulleted-list outlining the intended goals of this RFC.
Beta Was this translation helpful? Give feedback.
All reactions