#Vite | Disabling HMR Prevents Tailwind from Updating

1 messages · Page 1 of 1 (latest)

keen sun
#

Hi! I would like to disable HMR because I want to compare the style changes made to a tab to another older, unmodified tab. (From my exp, HMR reloads all tabs)

But by disabling HMR (with hmr: false in vite.config.js), classes modified in blade files are not reflected in the browser, even after reload. How do I go about this? Thanks! 🙂

pale minnow
#

Yeah, looks like Tailwind isn't recompiled when hmr is set to false, so seems like a tailwind issue.

keen sun
#

I see. I can't find anything on how to fix this, though. Any ideas?

pale minnow
#

No clue, you might want to create an issue for it?

#

You could also just use vite build and check the differences that way. This does mean you'd have to run the command every time