Will the styles of unused components be removed during compilation?
euwei7 opened this issue · comments
Euwei commented
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 the anu-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?
JD Solanki commented
No, It won't generate the styles of unused components or class. Let me know if there's any issue.