Comparing version 3.0.2 to 3.0.3
@@ -7,3 +7,3 @@ { | ||
"license": "BSD-2-Clause", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"engines": { | ||
@@ -10,0 +10,0 @@ "node": ">=0.8.0" |
@@ -1,13 +0,10 @@ | ||
UglifyJS 3 | ||
========== | ||
uglify-es | ||
========= | ||
[![Build Status](https://travis-ci.org/mishoo/UglifyJS2.svg)](https://travis-ci.org/mishoo/UglifyJS2) | ||
UglifyJS is a JavaScript parser, minifier, compressor or beautifier toolkit. | ||
**uglify-es** is an ECMAScript 2015 parser, minifier, compressor and 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. | ||
- **The `uglify-es` API and CLI is compatible with `uglify-js@3.x`.** | ||
- **`uglify-es` is not backwards compatible with the `uglify-js@2.x` API and CLI.** | ||
@@ -22,14 +19,8 @@ Install | ||
npm install uglify-js -g | ||
npm install uglify-es -g | ||
From NPM for programmatic use: | ||
npm install uglify-js | ||
npm install uglify-es | ||
From Git: | ||
git clone git://github.com/mishoo/UglifyJS2.git | ||
cd UglifyJS2 | ||
npm link . | ||
Usage | ||
@@ -595,3 +586,3 @@ ----- | ||
```javascript | ||
var UglifyJS = require("uglify-js"); | ||
var UglifyJS = require("uglify-es"); | ||
``` | ||
@@ -726,17 +717,1 @@ | ||
#### 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. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
654160
715