🔥🔥 HOT RELOAD ON ELECTRON INCLUDED! 🔥🔥
You can use this template with or without Electron. The project folder structure is:
Execute inside relative folder client and electron yarn
or npm install
to install all dependencies required.
Inside client folder you can run Phaser with Typescript, Rollup and Vite but without Electron.
Command | Description |
---|---|
yarn or npm install |
Install project dependencies |
yarn dev or npm run dev |
Builds project and open web server, watching for changes |
yarn build or npm run build |
Builds code bundle with production settings |
yarn serve or npm run serve |
Run a web server to serve built code bundle |
Inside electron folder you can run Electron with Phaser! You can run in dev mode or production mode for the final preview and release.
🔥🔥 HOT RELOAD INCLUDED! 🔥🔥
Command | Description |
---|---|
yarn |
Install project dependencies |
yarn dev |
Builds project and open web server from client folder and Electron, watching for changes |
yarn preview |
Starts a preview for a final release |
yarn build |
Build app with Electron |