Will the styles of unused components be removed during compilation? #198
euwei7
announced in
Announcements
Replies: 1 comment
-
No, It won't generate the styles of unused components or class. Let me know if there's any issue. |
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
-
I started experimenting with anu, and in the documentation guide, I noticed that the
uno.config.ts
configuration file requires the addition of:include: [/.*\/anu-vue\.js(.*)?$/, './**/*.vue', './**/*.md']
. This will enable unocss to scan theanu-vue.js
file.If anu compiles all components into the
anu-vue.js
file, will unocss generate styles for all components (including unused ones) in the CSS file when scanning the anu-vue.js file?Beta Was this translation helpful? Give feedback.
All reactions