Solid Start HMR not rebuilding styles on class change
Use tailwind 4.0, change class of JSX component while dev server is running, HMR reloads component but tailwind is not rebuilt to actually style the class
How could I fix this? In vite config?
1 Reply
I have the tailwind 4.0 plugin for postCSS and vite integrated, but still nothing
I can get around it by saving the tailwind.css source but that's obviously not ideal
Okay well I just scuffed into existence this vite plguin that seems to work
I have no clue if it's ideal but it works:
Use in vite config like so
Again I don't know if this is standard or optimal but it's working for me with Tailwind 4.0 and SolidStart