This quick-start project template combines Phaser 3 with TypeScript and uses webpack for bundling.
Node.js is required to install dependencies and run scripts via npm
.
Command | Description |
---|---|
npm install |
Install project dependencies |
npm run start |
Build project and open web server running project, watching for changes |
npm run build |
Builds code bundle with production settings (minification, no source maps, etc..) |
After cloning the repo, run npm install
from your project directory. Then, you can start the local development
server by running npm run watch
. The first time you run this you should see the following demo run:
After starting the development server with npm run start
, you can edit any files in the src
folder
and webpack will automatically recompile and reload your server (available at http://localhost:8080
by default).