rollup-starter-app icon indicating copy to clipboard operation
rollup-starter-app copied to clipboard

Live reload

Open curran opened this issue 3 years ago • 4 comments

Currently one must refresh the browser manually on each build.

The builds are triggered automatically when source files change, so something that just watches bundle.js would be sufficient.

Might there be some low hanging fruit approach to enable live reload?

It appears serve does not do live reload, so we'd need to swap it out with something else. Perhaps something like live-server, which unfortunately seems a dead project (published 3 years ago).

Any ideas?

curran avatar Jun 28 '21 10:06 curran

Hi @curran,

Hoping you're having a good day. I landed here by ways of a related issue on GH and was hoping that you might have gotten some more interest via another issue or source since you posted this on June 28? Have you had any interest elsewhere?

VincentVToscano avatar Sep 14 '21 19:09 VincentVToscano

I'm still interested in finding a suitable solution. I have not found one yet.

curran avatar Sep 16 '21 19:09 curran

Thanks for your response. Hoping you find one as well.🤞Rollup is a great product and perhaps someone in the community will stumble upon this and offer up something that can accommodate this need. Best to you.

VincentVToscano avatar Sep 18 '21 03:09 VincentVToscano

Hey mates. I also love rollup a lot and love it tremendously. Had the same problem as all of you and I wrote a plugin rollup-plugin-reloadsite that leverages on the power of ReloadSite (another of my modules) to enable HMR on rollup.

Best part is you can watch multiple folders even those outside your src and dest directories, such as your server scripts.

mugendi avatar Dec 13 '23 13:12 mugendi