diff options
author | kzc <kzc@users.noreply.github.com> | 2017-02-26 12:55:24 -0500 |
---|---|---|
committer | Alex Lam S.L <alexlamsl@gmail.com> | 2017-02-27 01:55:24 +0800 |
commit | b1c593a0419bf5ef0c6849262cb23bb34c97ea80 (patch) | |
tree | 5ac058bcbadb5b3143a5262d456b68c921daa0d4 | |
parent | 13be50a4a9e34d65fef834625f44545e849fed02 (diff) | |
download | tracifyjs-b1c593a0419bf5ef0c6849262cb23bb34c97ea80.tar.gz tracifyjs-b1c593a0419bf5ef0c6849262cb23bb34c97ea80.zip |
add harmony branch details in README (#1507)
-rw-r--r-- | README.md | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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. |