Vite - styles brakes after closing "npm run dev" process
I am using laravel with Vite and Valet. I have added some styling using tailwind. When I run npm run build initially, styles work fine, after that I use npm run dev (for applying live changes). When I close that process in phpStorm terminal my styles break completely and are not loading until i run npm run dev again. What may be causing this behaviour?
@Sinnbeck so basically the page is loading but no styles are applied at all, just plain html. They get applied only wile npm run dev is running. There is no errors either.
Check if there is a file named hotin the /public directory. Delete it if there is. It should be automatically removed when stopping npm run dev but maybe it wasn't
@Sinnbeck Indeed, I can find a file called "hot". Styles are re-aplied after I delete it, it does not delete itself for some reason. Any solution to that?
@Sinnbeck it is being deleted when I use ctrl + c. I was closing it using ctrl + z which I thought wasn't different but it is. I used it before without any issues, maybe it was changed with the new version? Anyways many thanks for your help!