.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.4. .TH UGLIFY-JS "1" "October 2014" "uglify-js 2.4.15" "User Commands" .SH NAME uglify-js \- manual page for uglify-js 2.4.15 .SH DESCRIPTION \fI\,/usr/bin/nodejs\/\fP ./bin/uglifyjs input1.js [input2.js ...] [options] Use a single dash to read input from the standard input. .PP NOTE: by default there is no mangling/compression. Without [options] it will simply parse input files and dump the AST with whitespace and comments discarded. To achieve compression and mangling you need to use `\-c` and `\-m`. .SH OPTIONS .TP \fB\-\-source\-map\fR Specify an output file where to generate source map. [string] .TP \fB\-\-source\-map\-root\fR The path to the original source to be included in the source map. [string] .TP \fB\-\-source\-map\-url\fR The path to the source map to be added in //# sourceMappingURL. Defaults to the value passed with \fB\-\-source\-map\fR. [string] .TP \fB\-\-source\-map\-include\-sources\fR Pass this flag if you want to include the content of source files in the source map as sourcesContent property. [boolean] .TP \fB\-\-in\-source\-map\fR Input source map, useful if you're compressing JS that was generated from some other original code. .TP \fB\-\-screw\-ie8\fR Pass this flag if you don't care about full compliance with Internet Explorer 6\-8 quirks (by default UglifyJS will try to be IE\-proof). .IP [boolean] .TP \fB\-\-expr\fR Parse a single expression, rather than a program (for parsing JSON) [boolean] .TP \fB\-p\fR, \fB\-\-prefix\fR Skip prefix for original filenames that appear in source maps. For example \fB\-p\fR 3 will drop 3 directories from file names and ensure they are relative paths. You can also specify \fB\-p\fR relative, which will make UglifyJS figure out itself the relative paths between original sources, the source map and the output file. .IP [string] .TP \fB\-o\fR, \fB\-\-output\fR Output file (default STDOUT). .TP \fB\-b\fR, \fB\-\-beautify\fR Beautify output/specify output options. [string] .TP \fB\-m\fR, \fB\-\-mangle\fR Mangle names/pass mangler options. [string] .TP \fB\-r\fR, \fB\-\-reserved\fR Reserved names to exclude from mangling. .TP \fB\-c\fR, \fB\-\-compress\fR Enable compressor/pass compressor options. Pass options like \fB\-c\fR hoist_vars=false,if_return=false. Use \fB\-c\fR with no argument to use the default compression options. [string] .TP \fB\-d\fR, \fB\-\-define\fR Global definitions [string] .TP \fB\-e\fR, \fB\-\-enclose\fR Embed everything in a big function, with a configurable parameter/argument list. [string] .TP \fB\-\-comments\fR Preserve copyright comments in the output. By default this works like Google Closure, keeping JSDoc\-style comments that contain "@license" or "@preserve". You can optionally pass one of the following arguments to this flag: \- "all" to keep all comments \- a valid JS regexp (needs to start with a slash) to keep only comments that match. Note that currently not *all* comments can be kept when compression is on, because of dead code removal or cascading statements into sequences. [string] .TP \fB\-\-preamble\fR Preamble to prepend to the output. You can use this to insert a comment, for example for licensing information. This will not be parsed, but the source map will adjust for its presence. .TP \fB\-\-stats\fR Display operations run time on STDERR. [boolean] .TP \fB\-\-acorn\fR Use Acorn for parsing. [boolean] .TP \fB\-\-spidermonkey\fR Assume input files are SpiderMonkey AST format (as JSON). [boolean] .TP \fB\-\-self\fR Build itself (UglifyJS2) as a library (implies \fB\-\-wrap\fR=\fI\,UglifyJS\/\fR \fB\-\-export\-all\fR) [boolean] .TP \fB\-\-wrap\fR Embed everything in a big function, making the ???exports??? and ???global??? variables available. You need to pass an argument to this option to specify the name that your module will take when included in, say, a browser. [string] .TP \fB\-\-export\-all\fR Only used when \fB\-\-wrap\fR, this tells UglifyJS to add code to automatically export all globals. .IP [boolean] .TP \fB\-\-lint\fR Display some scope warnings [boolean] .TP \fB\-v\fR, \fB\-\-verbose\fR Verbose [boolean] .TP \fB\-V\fR, \fB\-\-version\fR Print version number and exit. [boolean] .TP \fB\-\-noerr\fR Don't throw an error for unknown options in \fB\-c\fR, \fB\-b\fR or \fB\-m\fR. [boolean]