Skip to content

[browser-esbuild] live-reload=false workflow is less convenient now #27479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
undsoft opened this issue Apr 16, 2024 · 2 comments
Open

[browser-esbuild] live-reload=false workflow is less convenient now #27479

undsoft opened this issue Apr 16, 2024 · 2 comments

Comments

@undsoft
Copy link

undsoft commented Apr 16, 2024

Command

serve

Description

I often work with live-reload disabled. This is helpful when working on CSS changes, I can try things in browser and then make multiple edits in files before manually reloading.
It's also faster when working on a laptop.

Before esbuild:

  1. Make changes.
  2. Refresh page.
  3. Page reloads after new changes have been compiled.

With esbuild:

  1. Changes.
  2. Refresh.
  3. Page reloads immediately before changes have been compiled. Now I need to monitor terminal and reload the page after successful compilation.

Describe the solution you'd like

I was okay with the old behaviour where server wouldn't respond before successful compilation.

A less desired alternative would be to log Vite messages in browser's console, so that I can tell when compilation has finished there.

Describe alternatives you've considered

No response

@sruszczynski
Copy link

One of the most frustrating things for me after switching to esbuild. So far, reloading the tab in the browser has been held up until the project rebuild is complete. Currently the old version is being served...

@Licen-it
Copy link

Licen-it commented May 6, 2025

I have a similar issue, I'm running the server not using ng serve, and directly having my serve to load from the output folder, and i was relying on the build-watch completion to refresh the page, but now since i switched to esbuild, once the build completes, the new files are not physically written on the file system and refreshing the browser won't load the new changes (i have to wait a few seconds after the build completes before refreshing the browser)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants