diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-11-21 02:30:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-21 10:30:46 +0800 |
commit | 645d5a348bced192907176876b9e46c942e7d0ae (patch) | |
tree | ff51af3a2a307ddc6186ccc857ebbc5250a5e3b5 /README.md | |
parent | cf120c7cea2721626caa67767d720431becf7f62 (diff) | |
download | tracifyjs-645d5a348bced192907176876b9e46c942e7d0ae.tar.gz tracifyjs-645d5a348bced192907176876b9e46c942e7d0ae.zip |
workaround Safari quirks (#4314)
fixes #1753
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -135,6 +135,10 @@ a double dash to prevent input files being used as option arguments: --toplevel Compress and/or mangle variables in top level scope. --verbose Print diagnostic messages. --warn Print warning messages. + --webkit Support non-standard Safari/Webkit. + Equivalent to setting `webkit: true` in `minify()` + for `mangle` and `output` options. + By default UglifyJS will not try to be Safari-proof. --wrap <name> Embed everything in a big function, making the “exports” and “global” variables available. You need to pass an argument to this option to @@ -519,6 +523,9 @@ if (result.error) throw result.error; - `warnings` (default `false`) — pass `true` to return compressor warnings in `result.warnings`. Use the value `"verbose"` for more detailed warnings. +- `webkit` (default `false`) -- enable workarounds for Safari/WebKit bugs. + PhantomJS users should set this option to `true`. + ## Minify options structure ```javascript @@ -910,9 +917,6 @@ can pass additional arguments that control the code output: - `v8` (default `false`) -- enable workarounds for Chrome & Node.js bugs -- `webkit` (default `false`) -- enable workarounds for WebKit bugs. - PhantomJS users should set this option to `true`. - - `width` (default `80`) -- only takes effect when beautification is on, this specifies an (orientative) line width that the beautifier will try to obey. It refers to the width of the line text (excluding indentation). |