Best way to do live-reload (aka hot reload) with Vike #2053
-
Hello, I am a total beginner with Vike and also quite a beginner for NPM, Vite, React I was wondering what was the "recommended" way to enable live-reload so that my site rebuilds when I am changing the source code. On google, I found several NPM packages doing this but luckily I found a way to do it with having to rely on a new NPM package It's based on Vite, I added this server section in my vite.config.ts Is this the proper way to do it ? (it works on my side, but just wanted to be sure it will not have bad side-effects)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Are you under Windows and using Docker with WSL (Windows Subsystem for Linux)? |
Beta Was this translation helpful? Give feedback.
https://vite.dev/config/server-options#server-watch:~:text=Using%20Vite%20on%20Windows%20Subsystem%20for%20Linux%20(WSL)%202