template-rollup-typescript
template-rollup-typescript copied to clipboard
Hot-reload functionality
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?
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.
🙏 would love to have this
sweet @geocine !
I am wondering why the phaser team doesn't provide it out of the box?
@photonstorm Hi, when will this PR get merged? It is a must have feature. Good work with Phaser.
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.
I have updated the repository to use vitejs which made it even faster and much stable.
@geocine
Why not use a widely used bundler like Webpack?
Its just preference, rollup is a widely used bundler as well . To simply put it this setup is faster than Webpack.
@geocine I understand. Thank you.