Issue with TailwindCSS JIT (Just-In-Time) Mode Not Purging Unused Styles in Production Build #144696
-
Select Topic AreaQuestion BodyHi, I'm facing an issue with TailwindCSS's JIT mode not purging unused styles in the production build. Here is my configuration:
I'm using Next.js along with TailwindCSS and have tried clearing the cache, restarting the dev server, and rebuilding, but the issue persists. Steps to Reproduce::
Expected Behavior: Actual Behavior: Questions:
Looking forward to any suggestions or guidance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi! It seems like your
You can check the version by running:
If you need to upgrade:
Here's an updated version of your config for reference:
and importing Tailwind into your
Let me know if these suggestions help or if you encounter any other issues! |
Beta Was this translation helpful? Give feedback.
Hi! It seems like your
tailwind.config.js
file is mostly set up correctly, but there might be a couple of things to check to ensure JIT mode and purging are working as expected in production.You can check the version by running:
If you need to upgrade:
purge
option was replaced by thecontent
key, which you've already set. T…