Skip to content

Commit

Permalink
doc: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed May 9, 2018
1 parent 084b369 commit d45fde2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -305,8 +305,8 @@ const imageminGifsicle = require("imagemin-gifsicle");
| **`imageminOptions`** | `{Object}` | `{ plugins: [] }` | Options for `imagemin` |
| **`loader`** | `{Boolean}` | `true` | Automatically adding `imagemin-loader` (require for minification images using in `url-loader`, `svg-url-loader` or other) |
| **`maxConcurrency`** | `{Number}` | `os.cpus().length - 1` | Maximum number of concurrency minification processes in one time |
| **`name`** | `{Number}` | `[hash].[ext]` | The target asset name |
| **`manifest`** | `{Number}` | `[hash].[ext]` | Contain optimized list of images from other plugins |
| **`name`** | `{String}` | `[hash].[ext]` | The target asset name |
| **`manifest`** | `{Object}` | `undefined` | Contain optimized list of images from other plugins |

<!--lint enable no-html-->

Expand Down Expand Up @@ -465,7 +465,8 @@ const manifest = {};
new ImageminWebpackPlugin({
manifest
}),
new OtherPlugin({
new SomeManifestPlugin({
// Contain compressed images
manifest
})
];
Expand Down
2 changes: 1 addition & 1 deletion src/ImageminWebpackPlugin.js
Expand Up @@ -25,7 +25,7 @@ class ImageminWebpackPlugin {
plugins: []
},
loader = true,
manifest = null,
manifest,
maxConcurrency = CPULength > 1 ? CPULength - 1 : CPULength,
name = "[hash].[ext]"
} = options;
Expand Down

0 comments on commit d45fde2

Please sign in to comment.