Running in Microsoft Live Preview

Hey guys,

I went through multiple tutorials and managed to setup dev environment using VS Code and Vite.
Unfortunately if I make cages I have to refresh the browser page and it is super annoying.

While learning CSS and JS I was using Microsoft Live Preview and it is super useful.

Anyway to run Three.js interactively using this plugin?

So if I change cube size web page will automatically show an update

Thanks

Whether you use Three.js in project or not is irrelevant to hot reload - hot reload just updates your dev environment based on file changes, regardless whether these files contain a specific js library.

Vite supports HMR by default - if you’ve used npm create vite - all you really need to do is to run npm run dev and open the url it returns to you (ex. http://localhost:5173/). Whenever you make any changes to your project code in src/, vite will automatically update the preview for you.

Hi @mjurczyk
Thank you.
Yes, you are right.I have installed Vite and all works perfectly well including hot reload.
I was wondering if it possible to use it with Live Preview? It keeps opening wrong localhost