broccoli-uglify-js

UglifyJS2 filter for Broccoli

broccoli-uglify-js

UglifyJS2 filter for Broccoli.

npm install --save-dev broccoli-uglify-js
var uglifyJavaScript = require('broccoli-uglify-js');
tree = uglifyJavaScript(tree, options);

The following options are supported:

  • mangle (passed through to UglifyJS): pass false to skip mangling names

  • compress (passed through to UglifyJS): pass false to skip compressing; pass an object to specify compressor options

  • output (passed through to UglifyJS): pass an object to specify additional output options

  • Enable ascii_only by default

Source maps are not yet supported.