A guide to getting started with Webpack and Phaser to prepare your game for distribution.

Posted on 11th Jun 2021. Follow @phaser_ and get the Phaser World newsletter.

image

Emanuele Feronato writes: "The idea behind this basic guide came for two reasons:

1 – There isn’t a basic webpack guide around the web. Actually. I mean it. Most – but I’d rather say “all” – recent tutorials you can find around the web do not cover the bare bones of webpack, so I think a “Hello World” is needed.

2 – Most HTML5 game publishers want your game to fit in one single JavaScript file, and while you should be able to build a game in a single file, what about frameworks like Phaser and other kind of dependencies?

There should be a better way to handle this task.

And here it comes webpack: an open source JavaScript module bundler."

Read More


The first book on the creation of HTML5 cross platform games using Phaser 3 and other free software.
  • By Emanuele Feronato
  • 155 Pages
  • 28 Source Code Examples
  • Build a complete game from start to finish
  • Cross Platform
  • Scaling for devices
Buy Now
$19