diff options
author | kzc <kzc@users.noreply.github.com> | 2017-05-09 17:07:45 -0400 |
---|---|---|
committer | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-10 05:07:45 +0800 |
commit | bad9d5cf882bdc78ba18765f85a473eb388e6790 (patch) | |
tree | 8a6b0c8a6e717fb83b58d108cc552c4eb16ee8ad | |
parent | a0f5f862dfe5667471fc99265f6163ca676c3f58 (diff) | |
download | tracifyjs-bad9d5cf882bdc78ba18765f85a473eb388e6790.tar.gz tracifyjs-bad9d5cf882bdc78ba18765f85a473eb388e6790.zip |
Change `harmony` to `uglify-es` in master README (#1895)
-rw-r--r-- | README.md | 23 |
1 files changed, 3 insertions, 20 deletions
@@ -7,9 +7,9 @@ UglifyJS is a JavaScript parser, minifier, compressor or beautifier toolkit. #### Note: - **`uglify-js@3.x` has a new API and CLI and is not backwards compatible with [`uglify-js@2.x`](https://github.com/mishoo/UglifyJS2/tree/v2.x)**. - **Documentation for UglifyJS `2.x` releases can be found [here](https://github.com/mishoo/UglifyJS2/tree/v2.x)**. -- 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. -- Node 7 has a known performance regression and runs `uglify-js` twice as slow. +- Release versions of `uglify-js` only support ECMAScript 5 (ES5). +- Those wishing to minify +ES2015+ (ES6+) should use the `npm` package [**uglify-es**](https://github.com/mishoo/UglifyJS2/tree/harmony). Install ------- @@ -717,20 +717,3 @@ Other options: [acorn]: https://github.com/ternjs/acorn [sm-spec]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k - -#### 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. |