aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-11-21 02:30:46 +0000
committerGitHub <noreply@github.com>2020-11-21 10:30:46 +0800
commit645d5a348bced192907176876b9e46c942e7d0ae (patch)
treeff51af3a2a307ddc6186ccc857ebbc5250a5e3b5 /README.md
parentcf120c7cea2721626caa67767d720431becf7f62 (diff)
downloadtracifyjs-645d5a348bced192907176876b9e46c942e7d0ae.tar.gz
tracifyjs-645d5a348bced192907176876b9e46c942e7d0ae.zip
workaround Safari quirks (#4314)
fixes #1753
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/README.md b/README.md
index 0bfad01a..bda1f02b 100644
--- a/README.md
+++ b/README.md
@@ -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).