Skip to content

Instantly share code, notes, and snippets.

@markknol
Last active January 8, 2018 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markknol/c4859699a14212b27263950a7ba1dc2e to your computer and use it in GitHub Desktop.
Save markknol/c4859699a14212b27263950a7ba1dc2e to your computer and use it in GitHub Desktop.
Empty Haxe project size

Size of empty Haxe/JavaScript project

openfl kha heaps pixi.js
normal 1027kb 358kb 1460kb 1250kb
closure 533kb 181kb 829kb 415kb

Used compiler: Haxe 3.4.2


Configurations

Used flags: -dce full, -D analyzer-optimize and lib closure

OpenFL

project.xml

<haxeflag name="-dce" value="full" />
<haxedef name="analyzer-optimize" />
<haxelib name="closure" />

Kha

khafile.js

project.addLibrary('closure');
project.addParameter('-dce full');
project.addParameter('-D analyzer-optimize');

Heaps

heaps.hxml

-cp src
-main Main
-lib heaps
-js bin/game.js

-lib closure
-dce full
-D analyzer-optimize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment