Open zunnur-trinovik opened 2 years ago
@zunnur-trinovik Question, I included the server block in vite.config.js, should I just run php artisan serve alongside for it to work? I updated some code in my view, vite said "page reload" correctly, but my http://localhost page did not update.
@zunnur-trinovik Question, I included the server block in vite.config.js, should I just run php artisan serve alongside for it to work? I updated some code in my view, vite said "page reload" correctly, but my http://localhost page did not update.
You need to run npm run dev
.
@zunnur-trinovik It's working now, I'm using Brave browser and it was blocking the JS required for auto-reload.
Hi, Unless the following config is added, hot reload will not work in WSL2. Alternatively, Put as comment in vite.config.js so the user can uncomment if necessary.
vite.config.js:
docker-compose.yml