Skip to content

How to prevent UnoCSS to generate classes from <style> tag in vue SFC? #3102

Closed Answered by zyyv
fuale asked this question in Q&A
Discussion options

You must be logged in to vote

Uno will not inject the generated css in sfc unless you use vue-scoped mode https://unocss.dev/integrations/vite#vue-scoped.
In the inspector, it represents the unitilities extracted by uno from this file. And provide reference to the generated css.

Uno will do its best to fully parse your code. Include the code in your ts . This is expected behavior.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fuale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants