uglifyjs

Minify using uglifyjs
https://github.com/markknol/hx-uglifyjs

To install, run:

haxelib install uglifyjs 0.0.7 

See using Haxelib in Haxelib documentation for more information.

README.md

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.

Installation

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

# enable source map generation
-D uglifyjs_sourcemap

# override default uglify-js node module path
-D uglifyjs_bin=path/to/bin/uglifyjs
Contributors
markknol
Version
0.0.7
Published
2 weeks ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github