aboutsummaryrefslogtreecommitdiff
path: root/bin/uglifyjs2
AgeCommit message (Collapse)Author
2012-11-21rename the npm package to "uglify-js" and cli tool to "uglifyjs"Mihai Bazon
2012-11-06add option to mangle names even if eval/with is in useMihai Bazon
(for more fair comparison to Closure compiler)
2012-10-18fix `--comments` (close #16)Mihai Bazon
2012-10-17employ a better parser for command-line argumentsMihai Bazon
to support passing commas in strings in for example: uglifyjs2 -cd TEST="'a,b'" <<EOF console.log(TEST); EOF → console.log("a,b") close #14
2012-10-10add `--lint` and display {file} in scope_warningsMihai Bazon
2012-10-09make `--comments` keep @cc_on tooMihai Bazon
2012-10-09add `--ast-help`Mihai Bazon
displays a rather cruel description of the AST classes, derived directly from the node definitions.
2012-10-08should not expose base54.sort() in the API docs, I thinkMihai Bazon
2012-10-08added --self to easily get a browser-runnable version of UglifyJSMihai Bazon
2012-10-05added --acorn and --spidermonkey optionsMihai Bazon
2012-10-02fixed usage stringMihai Bazon
2012-10-02support for `--comments` option to keep comments containing @license or ↵Mihai Bazon
@preserve
2012-10-02option to exclude certain names from manglingMihai Bazon
2012-10-02support definesMihai Bazon
2012-10-02"use strict";Mihai Bazon
2012-10-02a shy attempt to obey `width` in the beautifier; added `bracketize` option ↵Mihai Bazon
to always print brackets around if/do/while/for statements; export more options via the CLI
2012-09-26removed the "squeeze" method (it's now effectively "transform")Mihai Bazon
2012-09-26minorMihai Bazon
2012-09-24Support input source mapMihai Bazon
This is useful while compressing generated code; for example compressing JS compiled by CoffeeScript (assuming you got a source map): uglifyjs2 --in-source-map generated.js.map \ --source-map uglified.js.map \ -o uglified.js The above assumes you have a "generated.js.map" file which is the source mapping between your CoffeeScript and the generated.js (compiled output from CoffeeScript). The name of the input file is not present in this example; it will be fetched from the source map (but it can be passed manually too). The output will be in "uglified.js" and the output map "uglified.js.map" will actually map to the original CoffeeScript code, rather than to generated.js.
2012-09-21log filename in parse errors / compressor warningsMihai Bazon
2012-09-21better support for multiple input files:Mihai Bazon
- use a single AST_Toplevel node for all files - keep original source filename in the tokens
2012-09-19support -c with no arguments to disable compression entirelyMihai Bazon
2012-09-14more optimizations that v1 does and some cleanupsMihai Bazon
- a = a + x ==> a+=x - joining consecutive var statements (hoisting is not always desirable) - x == false ==> x == 0, x != true ==> x != 1 - x, x ==> x; x = exp(), x ==> x = exp() - discarding useless break-s
2012-09-13added -m and -c optionsMihai Bazon
2012-09-11minorMihai Bazon
2012-09-11fixed some mess with symbols/scopeMihai Bazon
- all symbols now have a `thedef` property which is a SymbolDef object, instead of the `uniq` that we had before (pointing to the first occurrence of the name as declaration). - for undeclared symbols we still create a SymbolDef object in the toplevel scope but mark it "undeclared" - we can now call figure_out_scope after squeezing, which is useful in order not to mangle names that were dropped by the squeezer
2012-09-11checkpointMihai Bazon
- discard statements with no side effects (unsafe? could be) - safer hoist_vars (needs some revamping of scope/mangling)
2012-09-10hoist_vars is pretty bad, it seems. cancelled it for now.Mihai Bazon
2012-09-10adaptive base54 digits depending on char frequency (WIP)Mihai Bazon
2012-09-10fix "file" in the source mapMihai Bazon
2012-09-05declared `--stats` as booleanMihai Bazon
2012-09-03minorMihai Bazon
2012-09-03declare boolean optionsMihai Bazon
2012-09-03add -bMihai Bazon
2012-09-02add source mappings for more node types; started CLI utilityMihai Bazon