A new tutorial on how to reduce the file size of your Phaser bundle by creating a custom build.
Louigi Verona writes: "For those of us who are definitely not using all parts of Phaser, it might be prudent to reduce the file size of the production library. The current minified file size is around 880kb. This is quite a lot.
The good news is that there is a way to throw out modules you are not using in your game, and this tutorial is going to walk you through the process.
While Devlog 127 already has a good tutorial on how to do that, this tutorial is designed to be even more explicit, step by step instructions for people who generally know how to script games, but haven’t worked much with npm and/or webpack and just need a clear explanation of what to do, without the added baggage of learning a technology they would otherwise not need.
Carefully and patiently go through this tutorial once — and you will get a good understanding of custom builds, and at the same time learn a bit about Phaser’s source code, which is actually very organized and not scary at all. And be sure to bookmark this tutorial for future reference, as details get forgotten fairly quickly."