Browser builds¶
The repository's browser build script accepts an entry point and output path:
npm run build:browser -- \
--entry path/to/your-game.js \
--out path/to/bundle.js
The underlying CLI can also be invoked directly:
node core/browser/build.js \
--entry path/to/your-game.js \
--out path/to/bundle.js
Add --minify for a minified bundle. Sourcemaps are enabled by default by
the builder.