uglifyjs 0.0.6

Minify using uglifyjs

Released 2018-05-17.

To install, run:

haxelib install uglifyjs 0.0.6

See using Haxelib in Haxelib documentation for more information.

Current version0.0.6
StatisticsInstalled 363 times

Haxe/JavaScript Uglify

Build Status

UglifyJS is a JavaScript parser, minifier, compressor and beautifier toolkit.

This library runs the uglify-js node module after your Haxe/JavaScript build completed.


First: Install the node module using NPM:

npm install uglify-js --save

Second: Install using Haxelib:

haxelib install uglifyjs

To use in code, add to your build hxml:

-lib uglifyjs

# disable uglifyjs from being executed:
-D uglifyjs_disabled

# overwrite original output rather then generating a .min.js next to it
-D uglifyjs_overwrite

# disable compression
-D uglify_no_compress

# disable mangling (renaming of local variables)
-D uglify_no_mangle

# keep JavaScript comments
-D uglifyjs_comments
-D uglifyjs_comments=filter

# override default uglify-js node module path
-D uglifyjs_bin=path/to/bin/uglifyjs