Tailwind CLI doesn't minify properly using another lib on top #16454
Unanswered
FJLendinez
asked this question in
Help
Replies: 1 comment
-
Hey! It's unclear from your writeup what exactly the issue is here. Note that we use https://lightningcss.dev/ to minify the resulting CSS so if you expect a higher level of minification I'd suggest checking lightningcss on wether it works as expected. Unfortunately without a repro I am not able to look into the resulting CSS file to figure out why it's so large. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
First of all, thanks for all your work. Tailwind nowadays is like a piece of art to me.
The problem is using daisyui css (v5) (that contains all the tailwindcss layers and stuff), I created a sample file and configuration to test the behaviour. In this case, the expected behaviour is that all the layers and css clases were removed to have a minimum-sized css file.
When I launch the command, I received a css file of +800kb. I know that it seems to be a daisyui problem but the responsability of minifying is in tailwind.
I tried to define the base of source files in order to avoid that tailwind use the "daisyui source" and define all the classes
Tailwindcss Version
v4.0.6
File tree tested
Command used
DEBUG=1 tailwindcss -i config/app.css -o static/tailwind.css -m
Content of app.css
Content of test.html
Beta Was this translation helpful? Give feedback.
All reactions