Improve treeshaking
#16106
Replies: 1 comment 1 reply
-
Hey! The classes you see (e.g. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions