UglifyJS2 filter for Broccoli.
var UglifyJSFilter = require('broccoli-uglify-js')(broccoli);
tree.addTransformer(new UglifyJSFilter);
You can pass a hash of options to the UglifyJSFilter
constructor, for
instance
new UglifyJSFilter({
mangle: false
})
The following options are supported:
-
mangle
(passed through to UglifyJS): passfalse
to skip mangling names -
compress
(passed through to UglifyJS): passfalse
to skip compressing; pass an object to specify compressor options -
output
(passed through to UglifyJS): pass an object to specify additional output options
Source maps are not yet supported.