David Caldwell
2850dc69fd
Document passing source maps directly to minify() using inSourceMap
2015-04-03 17:27:28 -07:00
Mihai Bazon
3ec11c781b
Update README
2015-03-29 13:13:40 +03:00
Mihai Bazon
ecfd881ac6
Keep unused function arguments by default
...
Discarding unused function arguments affects function.length, which can lead
to some hard to debug issues. This optimization is now done only in "unsafe
mode".
Fix #121
2015-03-20 10:28:51 +02:00
Mihai Bazon
fbbaa42ee5
Add option to preserve/enforce string quote style
...
`-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-27 22:26:27 +02:00
Richard van Velzen
285bffd2c6
Document -- for usage in CLI class
...
Close #518
2015-01-07 19:04:10 +01:00
Austin Brown
aa5dd15352
Update README.md
...
otions => options
2015-01-04 16:01:53 +01:00
Peter Dave Hello
5bff65c132
Use svg instead of png to get better image quality
2015-01-04 15:58:00 +01:00
Mihai Bazon
a64bdda9ae
Document keep_fargs. Close #557
2014-09-28 12:36:36 +03:00
Ingvar Stepanyan
e391367488
Added example for usage with SpiderMonkey AST.
2014-08-04 20:48:14 +03:00
Vladimir Agafonkin
9b404f9de6
fix readme typo (when -> with)
2014-02-06 18:11:33 +02:00
Mihai Bazon
1dd05f44eb
Merge branch 'sourcesContent' of https://github.com/arty-name/UglifyJS2 into arty-name-sourcesContent
2014-01-26 10:15:24 +02:00
Mihai Bazon
1ab2fdaa10
Fix example
2014-01-17 15:48:47 +02:00
Artemy Tregubenko
03cf94ebe8
Added support for sourcesContent property of source map
2014-01-09 15:12:00 +01:00
Mihai Bazon
dc5f70eab5
Add drop_console option to the compressor
2013-12-10 19:44:41 +02:00
Mihai Bazon
263577d5eb
[README] Fix #278
2013-10-30 14:13:30 +02:00
Mihai Bazon
f1b7094a57
Add "preamble" output option
...
Close #335
2013-10-29 11:09:18 +02:00
Mihai Bazon
f2348dd98b
Rename clean_getters to pure_getters; add pure_funcs.
2013-10-04 13:17:25 +03:00
Mihai Bazon
8cc86fee60
add clean_getters compressor option (default false)
...
allows one to specify if `foo.bar` is considered to have side effects.
2013-10-02 19:38:01 +03:00
Mihai Bazon
1a95007ec1
Remove --ie-proof from the readme.
...
Fix #276
2013-08-22 10:10:25 +03:00
Mihai Bazon
ed80b4a534
Move support for negate_iife in the compressor, rather than code generator
...
(the code generator doesn't maintain enough context to know whether
the return value is important or discarded)
Fixes #272
2013-08-20 17:45:52 +03:00
Mihai Bazon
6ea3f7fe34
fix usage
2013-08-08 09:15:13 +03:00
Mihai Bazon
4aa4b3e694
Support -p relative. Fix #256
2013-08-07 11:43:47 +03:00
Mihai Bazon
9fc6796d2a
Add negate_iife option to the code generator.
...
See discussion in a9511dfbe5
2013-05-22 21:22:14 +03:00
Nick Schonning
46814f88d9
Add Travis build badge to README
2013-05-08 23:48:12 -04:00
Kim Joar Bekkelund
790b3bcdc6
Fix typo in bin and readme
2013-05-02 11:15:33 +02:00
Uli Köhler
a54b6703c0
Add README syntax highlighting
2013-05-01 15:56:20 +02:00
Michael Ficarra
483e0cadfb
unbalanced parentheses in readme
2013-04-20 14:05:52 -05:00
Michał Gołębiowski
75f0bbe6e8
renamed --screw-ie to --screw-ie8, documented it in README.md, indicated it doesn't break IE9+
2013-03-25 17:03:21 +01:00
Mihai Bazon
9b1a40dfc3
Support mangling toplevel names
...
Close #127
2013-03-13 09:44:06 +02:00
Mihai Bazon
e4b078cff7
Disable unsafe by default
...
Close #147
2013-03-11 00:04:31 +02:00
Mihai Bazon
e9a571b2a1
Merge pull request #94 from paulmillr/patch-1
...
Add better fromstring docs.
2013-01-31 23:50:59 -08:00
Mihai Bazon
297af47c89
Add --source-map-url option
...
Fix #100
Fix #47
2013-01-20 12:32:07 +02:00
Forbes Lindesay
c13e7e621d
Update installation instructions re #4
2013-01-17 00:13:42 +00:00
Paul Miller
ad071f8017
Add better fromstring docs.
2013-01-13 18:45:43 +02:00
Jake Archibald
1d8871a092
Compressor options use underscores rather than hyphens
2013-01-08 12:33:58 -08:00
Mihai Bazon
130c623be7
Support output, mangle and compress options to UglifyJS.minify.
...
Close #57
Close #86
Close #33
2013-01-04 11:25:13 +02:00
Benoît Zugmeyer
e82e89d1b0
--version option
2013-01-03 11:07:53 +01:00
Mihai Bazon
83a4ebfedc
Implement -m sort=true
...
close #83
2013-01-02 12:39:00 +02:00
Mihai Bazon
642ba2e92c
rename the npm package to "uglify-js" and cli tool to "uglifyjs"
2012-11-21 13:27:03 +02:00
Sergej Tatarincev
11dffe950e
Add sourceRoot option to minify
2012-10-19 12:35:19 +03:00
Mihai Bazon
6f45928a73
add fromString argument to UglifyJS.minify (allows to pass the source
...
code, instead of file names, as first argument).
close #17
2012-10-18 15:49:15 +03:00
Mihai Bazon
4482fdd63f
added note about API docs and online demo
2012-10-17 21:59:36 +03:00
Mihai Bazon
6472f9410e
add semicolons option in the code generator (default: true)
...
pass `false` to separate statements with newlines instead of semicolons
2012-10-17 14:52:08 +03:00
Mihai Bazon
70d205c447
update for acorn
2012-10-13 00:35:24 +03:00
Mihai Bazon
4807c6e756
update on @cc_on
2012-10-09 19:09:11 +03:00
Mihai Bazon
dfc04e6677
add simple API wrapper: UglifyJS.minify
...
(refs #7 )
2012-10-08 21:15:59 +03:00
Mihai Bazon
42ea3c95e0
added some basic API doc
2012-10-08 14:30:34 +03:00
Mihai Bazon
dd8286bce1
added --self to easily get a browser-runnable version of UglifyJS
2012-10-08 12:55:18 +03:00
Mihai Bazon
fe1411bba1
fix typo
2012-10-05 23:10:52 +03:00
Mihai Bazon
42c25d901c
add note about installation
2012-10-05 15:31:55 +03:00