[SOLVED] Merged CSS file output (no bundling) in Production #13785
-
TLDR: Your styles are merged in a single file in Production instead of being bundled for each page => Answer in the next comment. I use Next.js with Tailwind. I also have some One complexity of my app is that I use multiple My app, which is a website builder, uses 3 different MY ISSUE: Everything is working properly in dev mode. A given page will load only its corresponding Can someone please tell me what is going on? Is there something I can do to change the way my Note that I am sure the issue is coming from Tailwind. My project was using only Any help would be greatly appreciated. Sorry for not putting up a reproduction repo, this seems like a lot of time spent with no guarantee it will lead to a solution. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
UPDATE: As always, I spent hours to find a solution to my problem and then end up writing a post on GitHub only to find the solution an hour later... I'll leave it here for anyone running into this in the future: You need to install |
Beta Was this translation helpful? Give feedback.
UPDATE: As always, I spent hours to find a solution to my problem and then end up writing a post on GitHub only to find the solution an hour later... I'll leave it here for anyone running into this in the future:
You need to install
postcss-import
and add it to yourplugins
in yourpostcss.config.js
file. As described here.