Skip to content

Commit 63648fa

Browse files
committed
Add benefits in readme
1 parent f72cc35 commit 63648fa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
[travis-img]: https://travis-ci.org/TrySound/rollup-plugin-uglify.svg
44
[travis]: https://travis-ci.org/TrySound/rollup-plugin-uglify
55

6-
[Rollup](https://github.com/rollup/rollup) plugin to minify generated bundle. Uses [UglifyJS](https://github.com/mishoo/UglifyJS2) under the hood.
6+
[Rollup](https://github.com/rollup/rollup) plugin to minify generated bundle. Uses [UglifyJS](https://github.com/mishoo/UglifyJS2) under the hood. There are a few improvements over native uglify:
7+
8+
* uglify is run in worker for every chunk
9+
* errors are displayed with [babel code frame](https://babeljs.io/docs/en/next/babel-code-frame.html)
710

811
_Note: uglify-js is able to transpile only es5 syntax. If you want to transpile es6+ syntax use [terser](https://github.com/TrySound/rollup-plugin-terser) instead_
912

@@ -20,7 +23,7 @@ import { rollup } from "rollup";
2023
import { uglify } from "rollup-plugin-uglify";
2124

2225
rollup({
23-
entry: "main.js",
26+
input: "main.js",
2427
plugins: [uglify()]
2528
});
2629
```

0 commit comments

Comments
 (0)