Skip to content
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

Improve treeshaking #16082

Open
MickL opened this issue Jan 30, 2025 · 0 comments
Open

Improve treeshaking #16082

MickL opened this issue Jan 30, 2025 · 0 comments

Comments

@MickL
Copy link

MickL commented Jan 30, 2025

What version of Tailwind CSS are you using?

4.0.1

What build tool (or framework if it abstracts the build tool) are you using?

vite 6.0.5

What version of Node.js are you using?

Bun 1.2.1

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction URL
https://stackblitz.com/edit/vitejs-vite-qn84o4zm?file=src%2FApp.vue

Describe your issue

I just realized that an empty project, with no classes used at all, builds up a 21,9 kB css file. I see for example .lowercase, .uppercase, .shadow, .filter, .transition as well as tons of css variables and @Property's.

I was kinda expecting that Tailwind will not add classes that are not used. Also I would kindof expect the 364 css variables to be not included if they are not used.

Built css file (post-formatted):
https://pastebin.com/WNZ1C5f5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant