Scroll to navigation

UGLIFY-JS(1) User Commands UGLIFY-JS(1)

NAME

uglify-js - JavaScript parser, mangler/compressor and beautifier toolkit

DESCRIPTION

Usage: uglifyjs [options] [files...]
Options:
output the version number
Specify parser options.
Enable compressor/specify compressor options.
Mangle names/specify mangler options.
Mangle properties/specify mangler options.
Beautify output/specify output options.
Output file (default STDOUT).
Preserve copyright comments in the output.
Read minify() options from JSON file.
Global definitions.
Embed everything in a big function, with configurable argument(s) & value(s).
Support non-standard Internet Explorer 8.
Do not mangle/drop function names. Useful for code relying on Function.prototype.name.
File to hold mangled name mappings.
Force symbol expansion.
Disable symbol expansion. (default: true)
Build UglifyJS as a library (implies --wrap UglifyJS)
Enable source map/specify source map options.
Display operations run time on STDERR.
Compress and/or mangle variables in toplevel scope.
Print diagnostic messages.
Print warning messages.
Embed everything as a function with ???exports??? corresponding to ???name??? globally.
output usage information
March 2019 uglify-js 3.5.0