Skip to content

Commit db3a71a

Browse files
committed
Merge branch 'main' of github.com:developit/optimize-plugin
2 parents a3d4501 + 6af6336 commit db3a71a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ Put simply: it compiles code faster, better and smaller.
1414
- Removes unnecessary polyfills, even when inlined into dependencies
1515
- Builds a highly-optimized automated polyfills bundle
1616

17+
## Install
18+
19+
```sh
20+
npm install --save-dev optimize-plugin
21+
```
22+
1723
## Usage
1824

1925
First, disable any existing configuration you have to Babel, minification, and module/nomodule.
@@ -36,6 +42,7 @@ plugins: [
3642
| `sourceMap` | `boolean\|false` | Whether or not to produce source maps for the given input. |
3743
| `minify` | `boolean\|false` | Minify using Terser, if turned off only comments will be stripped. |
3844
| `downlevel` | `boolean\|true` | Produces a bundle for `nomodule` browsers. (IE11, ...) |
45+
| `modernize` | `boolean\|true` | Attempt to upgrade ES5 syntax to equivalent modern syntax. |
3946
| `verbose` | `boolean\|false` | Will log performance information and information about polyfills. |
4047
| `polyfillsFilename` | `string\|polyfills.legacy.js` | The name for the chunk containing polyfills for the legacy bundle. |
4148

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"description": "Webpack plugin to optimize bundles.",
55
"main": "dist/optimize-plugin.js",
6-
"repository": "GoogleChromeLabs/optimize-plugin",
6+
"repository": "developit/optimize-plugin",
77
"scripts": {
88
"build": "microbundle --target node --format cjs --no-compress src/*.js",
99
"prepack": "npm run build",

0 commit comments

Comments
 (0)