From 4591a3cf5e277465fa28baf87f16dc6830ce8d77 Mon Sep 17 00:00:00 2001 From: Tommertom Date: Sat, 31 Dec 2022 10:30:14 +0100 Subject: [PATCH] Update live-reload.md Additional hints on how to enable HMR in Vite --- docs/main/guides/live-reload.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/main/guides/live-reload.md b/docs/main/guides/live-reload.md index 958053c3..144dc70e 100644 --- a/docs/main/guides/live-reload.md +++ b/docs/main/guides/live-reload.md @@ -47,6 +47,7 @@ npm run start ``` > With react-scripts, use `HOST=0.0.0.0 npm run start` +> With vite (e.g. Vue or SvelteKit), use `vite dev --host` to expose the server Within `capacitor.config.json`, create a `server` entry then configure the `url` field using the local web server's IP address and port: