Browser refresh on change
I want the browser to refresh automatically upon file changes. How can I achieve that?
My environment:
- VS Code
- Ubuntu
- Browsers: Chrome, Firefox, Chromium and Brave browsers.
- Servers: Apache, Python built in server, Node server
I do CSS, JS, HTML, PHP and Python for web applications.
Thanks in advance for your input!
5 Replies
I'm not sure for your exact setup(s), but what you're looking for is commonly called something like "hot reloading"
Typically build tools / bundlers can help you out with this like Vite or Webpack iirc
Thanks @vince . I’ve installed vite today (for another purpose…). Seems to work just fine. Also got input to try esbuild.
nice! i've never tried esbuild so can't give you an opinion on that unfortunately but glad you got it working 🙂
esbuild is behind the scenes used in Vite along with Rollup
vs WebPack that uses Babel
Ohhhh ty!