Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-02-17 | Allow --no-* options to disable their respective parameter | Richard van Velzen | |
Fixes #974 and #972 | |||
2016-02-10 | Allow cli options to be specified in separate definitions | Richard van Velzen | |
Fix for #963. This allows stuff like `--define a=1 --define b=1` besides only `--define a=1,b=1` | |||
2015-11-11 | Rework has_directive | Mihai Bazon | |
It's now available during tree walking, i.e. walker.has_directive("use asm"), rather than as part of the scope. It's thus no longer necessary to call `figure_out_scope` before codegen. Added special bits in the code generator to overcome the fact that it doesn't inherit from TreeWalker. Fix #861 | |||
2015-11-01 | Fixed RegExp literal in mozilla AST generation/output and added a ↵ | kzc | |
--dump-spidermonkey-ast flag | |||
2015-10-13 | add `--pure-funcs` option | Damian Krzeminski | |
it has the same effect as specifying `pure_funcs` in `--compressor` option, however it's much easier to use instead of: --compressor 'pure_func=["Math.floor","debug","console.logTime"]' it's now possible: --compressor --pure-funcs Math.floor debug console.logTime fixes #684 | |||
2015-10-07 | get rid of SCOPE_IS_NEEDED as it was always true | kzc | |
2015-10-07 | Fix handling of "use asm" when no command line flags are passed to uglifyjs. ↵ | kzc | |
SCOPE_IS_NEEDED is unconditionally true now. Refactored floating point literal parsing to be more in keeping with the AST class design. | |||
2015-10-07 | Add proper support for "use asm"; blocks. Disable -c optimization within ↵ | kzc | |
"use asm"; sections and preserve floating point literals in their original form. Non-asm.js sections are optimized as before. Asm.js sections can still be mangled and minified of whitespace. No special command line flags are required. | |||
2015-09-24 | No longer use `vm` to load code. | Mihai Bazon | |
Improves performance 2x on node > 0.10. Ref #636 | |||
2015-06-09 | Change --mangle-regex to accept a full regex | Joao Carlos | |
2015-06-09 | Show descriptive error when --mangle-regex is invalid | Joao Carlos | |
2015-06-09 | Add --mangle-regex option | Joao Carlos | |
2015-05-04 | Remove deprecated calls to utils.print/utils.error | Mihai Bazon | |
Close #542, #641, #647 | |||
2015-04-22 | If name_cache is specified, do rename cached properties | Mihai Bazon | |
(even if --mangle-props is not there) | |||
2015-04-05 | More fixes for the breaking changes in yargs | Mihai Bazon | |
Close #670 | |||
2015-03-29 | Fix long options | なつき | |
2015-03-29 | Add tool to extract property names | Mihai Bazon | |
2015-03-22 | Export readDefaultReservedFile | Mihai Bazon | |
2015-03-18 | Add --reserve-domprops along with a default exclusion list in ↵ | Mihai Bazon | |
tools/domprops.json | |||
2015-03-18 | Support multiple --reserved-file args | Mihai Bazon | |
2015-03-17 | Export readNameCache / writeNameCache | Mihai Bazon | |
2015-03-16 | rename --prop-cache to --name-cache | Mihai Bazon | |
... and support storing there variable names as well, to help with multiple invocations when mangling toplevel. | |||
2015-03-14 | Fix --reserved-file | Mihai Bazon | |
2015-03-14 | Add property name mangler | Mihai Bazon | |
We only touch properties that are present in an object literal, or which are assigned to. Example: x = { foo: 1 }; x.bar = 2; x["baz"] = 3; x[cond ? "qwe" : "asd"] = 4; console.log(x.stuff); The names "foo", "bar", "baz", "qwe" and "asd" will be mangled, and the resulting mangled names will be used for the same properties throughout the code. The "stuff" will not be, since it's just referenced but never assigned to. This *will* break most of the code out there, but could work on carefully written code: do not use eval, do not define methods or properties by walking an array of names, etc. Also, a comprehensive list of exclusions needs to be passed, to avoid mangling properties that are standard in JavaScript, DOM, used in external libraries etc. | |||
2015-02-11 | Parse regexes properly | Anthony Van de Gejuchte | |
2015-01-27 | Add option to preserve/enforce string quote style | Mihai Bazon | |
`-q 0` (default) use single or double quotes such as to minimize the number of bytes (prefers double quotes when both will do); this is the previous behavior. `-q 1` -- always use single quotes `-q 2` -- always use double quotes `-q 3` or just `-q` -- always use the original quotes. Related codegen option: `quote_style`. Close #495 Close #460 Some `yargs` guru please tell me why `uglifyjs --help` doesn't display the help string for `-q` / `--quotes`, and why it doesn't output the expected argument types anymore, like good old `optimist` did. | |||
2015-01-05 | Declare boolean type for --keep-fnames | Mihai Bazon | |
2015-01-05 | Support keep_fnames in compressor, and --keep-fnames. #552 | Mihai Bazon | |
Passing `--keep-fnames` will enable it both for compressor/mangler, so that function names will not be dropped (when unused) nor mangled. | |||
2015-01-04 | Fix backslashes in source-map paths on Windows | Derek Wickern | |
2015-01-01 | Use yargs instead of optimist. | Kenneth Powers | |
2014-10-20 | Add option to allow return outside of functions. | Mihai Bazon | |
Close #288 | |||
2014-01-09 | Added support for sourcesContent property of source map | Artemy Tregubenko | |
2014-01-07 | Fix #392 | Mihai Bazon | |
2013-11-28 | Add --noerr to turn off argument name checking | Mihai Bazon | |
for now only used for keys passed to `-c` or `-b`. | |||
2013-10-29 | Fix reading arguments | Mihai Bazon | |
i.e. read `-c unsafe,unsafe-comps` as `-c unsafe=true,unsafe_comps=true` | |||
2013-10-29 | Add "preamble" output option | Mihai Bazon | |
Close #335 | |||
2013-10-28 | Fix codegen for when comments_before is undefined. | Mihai Bazon | |
Fix #333 | |||
2013-09-02 | Better reporting of parse errors | Mihai Bazon | |
2013-08-18 | fixes #259: don't unnecessarily quote object properties when --screw-ie8 | Michael Ficarra | |
2013-08-07 | Support `-p relative`. Fix #256 | Mihai Bazon | |
2013-07-30 | Fix #251 | Mihai Bazon | |
2013-07-28 | Don't require arguments to --enclose | Mihai Bazon | |
2013-05-21 | The extra /* */ isn't needed now | Matt Robenolt | |
2013-05-21 | SourceMapping pragma has changed to //# | Matt Robenolt | |
See: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit The spec was updated on May 16th since `//@` was causing some issues with IE. | |||
2013-05-15 | Add `--expr`, an option to parse a single expression (suitable for JSON) | Mihai Bazon | |
2013-05-02 | Fix typo in bin and readme | Kim Joar Bekkelund | |
2013-04-21 | Make compress/mangle disabled by default, as before ↵ | Mihai Bazon | |
5af144522a6fea302abdd0b63d48864de0664207 | |||
2013-04-20 | fixes #189: use dotted member access when --screw-ie8 option given | Michael Ficarra | |
2013-03-31 | uglifyjs binary: Make read_whole_file async and don't attempt to read STDIN ↵ | Andreas Lind Petersen | |
synchronously. | |||
2013-03-25 | renamed --screw-ie to --screw-ie8, documented it in README.md, indicated it ↵ | Michał Gołębiowski | |
doesn't break IE9+ |