Menu

📰
0

Bundling your phaser.js game with esbuild

DEV Community: esbuild·Kevin Potschien·about 1 month ago
#7VjgrPkA
#dev#class#code#esbuild#highlight#article
Reading 0:00
15s threshold

It's been two years since I wrote an article about how to bundle phaser projects using parcel. Eventually I needed to find a solution that fit my needs better and ended up trying all the big players in bundling right now. After a couple of weeks with sticking to esbuild, here's a final write up on my current workflow, that reliably works for every new project I work on. Setting up the project Skip this part if you're familiar with how to set up a basic project in your IDE and continue with Adding esbuild The Basics Using mkdir create an empty folder - but don't worry, you can simply create a folder as you normally would with your system. After opening this folder with our IDE, initialize a new project. In my case, I use yarn init in the terminal of VS Code, using the latest stable version of Yarn.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More