Best way to do live-reload (aka hot reload) with Vike #2053
Answered
by
brillout
Sebastian1005
asked this question in
Discussion
|
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) |
Answered by
brillout
Jan 8, 2025
Replies: 2 comments 4 replies
|
Are you under Windows and using Docker with WSL (Windows Subsystem for Linux)? |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://vite.dev/config/server-options#server-watch:~:text=Using%20Vite%20on%20Windows%20Subsystem%20for%20Linux%20(WSL)%202