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
vince
vince8mo ago
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
Karl
KarlOP8mo ago
Thanks @vince . I’ve installed vite today (for another purpose…). Seems to work just fine. Also got input to try esbuild.
vince
vince8mo ago
nice! i've never tried esbuild so can't give you an opinion on that unfortunately but glad you got it working 🙂
b1mind
b1mind8mo ago
esbuild is behind the scenes used in Vite along with Rollup vs WebPack that uses Babel
vince
vince8mo ago
Ohhhh ty!
Want results from more Discord servers?
Add your server