Skip to content

Commit

Permalink
Change harmony to uglify-es in master README (#1895)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzc authored and alexlamsl committed May 9, 2017
1 parent a0f5f86 commit bad9d5c
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions README.md
Expand Up @@ -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
-------
Expand Down Expand Up @@ -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.

0 comments on commit bad9d5c

Please sign in to comment.