-
SummaryHi everyone! I want to have minified css to reduce build size and make https://pagespeed.web.dev/ happy. Tailwind need postcss, so we cannot use the experimental flag "useLightningcss: true" I tried:
I'm running out of ideas... Anyone know how to get tailwind css minified with nextjs app router v15? Thanks a lot in advance! Additional informationtailwind v4. It was the same with v3.
nextjs v15.1.3 ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi, This might sound silly, but what do you mean? I did a bat .next/static/css/e03eda6107bdcc2a.css | wc -l
2 Could you post a link to the CSS file? Maybe something has been modified in your |
Beta Was this translation helpful? Give feedback.
Hi,
This might sound silly, but what do you mean? I did a
create-next-app
, built it, using tw4, and the CSS file I got, has two lines. Everything is minified. I know if you look at the CSS in your browser network tab, it is "beautified"Could you post a link to the CSS file? Maybe something has been modified in your
next.config.js
? or what is the actual PageSpeed/Lighthouse complaint?