Starter that uses Typescript + Webpack 4 to bundle your Phaser 3 game
After installing dependencies with yarn install
, it should have run yarn prepare
as well. If you update Phaser, you should run yarn prepare
once.
Launch a server to dev:
yarn dev
Bundling for production:
yarn build
You can deploy the ./dist
folder.
- Node
- yarn
In order to only include what we need, we provide a custom phaser build located
at lib/phaser.custom.js
. If things are not working, you are likely missing one
of the Plugins. I recommend looking at Phaser source code to see what they add
to the Phaser
object and add the same.
A bit more about it: