Usage with linaria / getPageAssets #688
Unanswered
MrFoxPro
asked this question in
Help & Questions
Replies: 1 comment
-
I see. Ideally that's something vite-plugin-ssr should do by default. (With the possibility to opt-out using Feel free to create a feature request. Although I most likely won't implement this anytime soon (there are currently a couple of higher priorities). That said, PR welcome. |
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
-
For my blog, I wanted to use Linaria with this beautiful plugin. I experimented with injecting of generated CSS directly in html head
<style>
. By default Vite inserts virtual css imports that Linaria produces into<link>
imports. WithinjectFilter
it's possible to control this, but before usage of filter, I need to get list of generated css imports, and the only way to get them I've found is to usegetPageAssets
. Are there another ways? If no, maybe it's better to not deprecategetPageAssets
?Beta Was this translation helpful? Give feedback.
All reactions