In a project I'm working on, I have a tailwind button. When it's clicked, I use jQuery to remove the bg-gray-700 class and replace it with bg-gray-300 (to indicate that the request the button makes is running).
If I start my project fresh, by running npm run dev and php artisan serve in two terminals, all the initial tailwind classes on the screen work. When pressing the button though, the class for bg-gray-300 is added, but it doesn't apply any styles.
Curiously though, if I were to edit the blade file and make the initial class bg-gray-300 in the first place, reload the page, then change it back to bg-gray-700 and reload the page again... everything works as intended.
When doing this, the terminal I'm running npm run dev in is cleared and writes out
[vite] page reload resources/views/campaign/createEdit.blade.php which leads me to believe it's Vite to blame.