uglifyopts
v0.1.2
Published
Uglify options
Downloads
3
Readme
Uglify Options
Uglify has a lot of options. This simply gives access to them all via 3 sensible defaults:
Usage
uglifyopts.defaults([locals])
: Default values that UglifyJS currently acceptsuglifyopts.beautify([locals])
: Default values, but with sensible items to beautify instead of uglify JS.uglifyopts.brutalize([locals])
: Strongest level of compression. Setsscrew_ie
option, along withpure_getters
, andunsafe
transformations.
All functions are getters that also accept overrides.
Example:
var uglifyopts = require('uglifyopts').beautify({
output: {
pure_getters: false
}
});
License
MIT