Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will the styles of unused components be removed during compilation? #197

Closed
euwei7 opened this issue Jul 14, 2023 · 1 comment
Closed

Will the styles of unused components be removed during compilation? #197

euwei7 opened this issue Jul 14, 2023 · 1 comment

Comments

@euwei7
Copy link

euwei7 commented Jul 14, 2023

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
Copy link
Owner

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

Repository owner locked and limited conversation to collaborators Jul 14, 2023
@jd-solanki jd-solanki converted this issue into discussion #198 Jul 14, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants