template-rollup-typescript icon indicating copy to clipboard operation
template-rollup-typescript copied to clipboard

Hot-reload functionality

Open bhgsbatista opened this issue 5 years ago • 8 comments

Currently changing code causes the bundle to be rebuilt, but the user still has to refresh the page to see their changes. Is it possible to auto-reload the page on changes?

bhgsbatista avatar Nov 22 '19 20:11 bhgsbatista

You can try my starter here https://github.com/geocine/phaser3-rollup-typescript , does not use rollup-plugin-livereload instead uses nollup which gives a better developer experience.

Demo

geocine avatar Mar 26 '20 15:03 geocine

🙏 would love to have this

KingCosmic avatar Apr 04 '20 12:04 KingCosmic

sweet @geocine !

I am wondering why the phaser team doesn't provide it out of the box?

visuallization avatar May 23 '20 13:05 visuallization

@photonstorm Hi, when will this PR get merged? It is a must have feature. Good work with Phaser.

hearsid avatar May 31 '20 05:05 hearsid

You can try my starter here https://github.com/geocine/phaser3-rollup-typescript , does not use rollup-plugin-livereload instead uses nollup which gives a better developer experience.

Demo

I have updated the repository to use vitejs which made it even faster and much stable.

geocine avatar Feb 12 '21 17:02 geocine

@geocine

Why not use a widely used bundler like Webpack?

KerimG avatar Apr 02 '21 19:04 KerimG

Its just preference, rollup is a widely used bundler as well . To simply put it this setup is faster than Webpack.

geocine avatar Apr 21 '21 06:04 geocine

@geocine I understand. Thank you.

KerimG avatar Apr 21 '21 06:04 KerimG