jd-solanki / anu

Anu - DX focused utility based vue component library built on top of UnoCSS & VueUse ⚡️🔥

Home Page:https://anu-vue.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Will the styles of unused components be removed during compilation?

euwei7 opened this issue · comments

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?

No, It won't generate the styles of unused components or class. Let me know if there's any issue.