Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TailwindCSS output css file 424 lines

Tags:

tailwind-css

I follow the Tailwind documentation about installing Tailwind using CLI but output.css file has only 424 lines whereas it should have thousands.

like image 946
Filip Avatar asked Dec 09 '25 04:12

Filip


2 Answers

I ran into this same issue, here is how I fixed it.

When following the docs I was running the command npx tailwindcss build.... It turns out I should have been using the command npx tailwindcss-cli build.... When running the first command I get an output of 424 lines. When running the second I get an output of several thousand lines.

like image 164
Thenlie Avatar answered Dec 12 '25 12:12

Thenlie


Ran into the same issue. Feels like they moved it from npx tailwindcss build... to npx tailwindcss-cli build... as @Leithen Crider mentioned above.

Fixed it by using this in my build script: "npx tailwindcss-cli build -i src/style.css -o public/output.css -w"

like image 40
Shams Wali Sowmo Avatar answered Dec 12 '25 13:12

Shams Wali Sowmo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!