Using npm install

Im followng a tutorial that uses npm to install Phaser and Parcel and it is just a pain trying to get it to actually work for me so I will just copy the phaser script into my html to get going but I was wondering what are the benefits to using npm and is it something i would have to do if I was to publish a game in itch.io for example?

It doesnt make a lot of sense to me to go through this when I can just open up live server in vs code, but im new to this so no doubt im missing something

You don’t have to install with npm to publish the game.

The advantage of using a bundler (like Parcel) is that it combines multiple scripts and minifies them when you publish the final game.

1 Like

highly recommend using Vite.js to replace Parcel
It is very easy to set up and build a game

1 Like

Thanks kheug35, I will look into Vite.js. much appreciated :slight_smile: