aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkzc <kzc@users.noreply.github.com>2017-02-26 12:55:24 -0500
committerAlex Lam S.L <alexlamsl@gmail.com>2017-02-27 01:55:24 +0800
commitb1c593a0419bf5ef0c6849262cb23bb34c97ea80 (patch)
tree5ac058bcbadb5b3143a5262d456b68c921daa0d4
parent13be50a4a9e34d65fef834625f44545e849fed02 (diff)
downloadtracifyjs-b1c593a0419bf5ef0c6849262cb23bb34c97ea80.tar.gz
tracifyjs-b1c593a0419bf5ef0c6849262cb23bb34c97ea80.zip
add harmony branch details in README (#1507)
-rw-r--r--README.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/README.md b/README.md
index 490f178c..260a685d 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,9 @@ There's also an
[in-browser online demo](http://lisperator.net/uglifyjs/#demo) (for Firefox,
Chrome and probably Safari).
+Note: release versions of `uglify-js` only support ECMAScript 5 (ES5). If you wish to minify
+ES2015+ (ES6+) code then please use the [harmony](#harmony) development branch.
+
Install
-------
@@ -966,3 +969,20 @@ The `source_map_options` (optional) can contain the following properties:
[codegen]: http://lisperator.net/uglifyjs/codegen
[compressor]: http://lisperator.net/uglifyjs/compress
[parser]: http://lisperator.net/uglifyjs/parser
+
+#### Harmony
+
+If you wish to use the experimental [harmony](https://github.com/mishoo/UglifyJS2/commits/harmony)
+branch to minify ES2015+ (ES6+) code please use the following in your `package.json` file:
+
+```
+"uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony"
+```
+
+or to directly install the experimental harmony version of uglify:
+
+```
+npm install --save-dev uglify-js@github:mishoo/UglifyJS2#harmony
+```
+
+See [#448](https://github.com/mishoo/UglifyJS2/issues/448) for additional details.