Can I remove these strings from my final css bundle? #2849
Replies: 4 comments 12 replies
-
Are you using Tailwind's purge feature? That should get rid of any unused classes. Cheers, |
Beta Was this translation helpful? Give feedback.
-
@frederikhors Those "strings" are css variables. They are needed at runtime in order for the library's generated CSS to actually work. I guess what you're asking is can they be removed if the corresponding feature is not being used? If you're using the pre-compiled CSS, I would assume the answer is no as it has no idea what you will/won't use (as it relates to CSS variables). |
Beta Was this translation helpful? Give feedback.
-
do you use the space and divide utilities? |
Beta Was this translation helpful? Give feedback.
-
5 years later, hello everyone :) I, too, was optimizing my css size and finally fixed this. Just stop using ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using PurgeCSS.
Is there a way I can remove all occurrences (a lot!) of these strings from my final css bundle?
--tw-space-x-reverse
--tw-space-y-reverse
--tw-divide-y-reverse
--tw-ring-offset-shadow
--tw-ring-shadow
By the way I'm not using
ring
at all with:Beta Was this translation helpful? Give feedback.
All reactions