-
-
Notifications
You must be signed in to change notification settings - Fork 179
Conversation
README.md
Outdated
@@ -46,6 +46,7 @@ module.exports = { | |||
|**`cache`**|`{Boolean\|String}`|`false`|Enable file caching| | |||
|**`parallel`**|`{Boolean\|Number}`|`false`|Use multi-process parallel running to improve the build speed| | |||
|**`sourceMap`**|`{Boolean}`|`false`|Use source maps to map error message locations to modules (This slows down the compilation) ⚠️ **`cheap-source-map` options don't work with this plugin**| | |||
|**`minify`**|`{Function}`|`(file, uglifyOptions) => uglify.minify(file, uglifyOptions)`|Allows you to override default minify function| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second param should be named differently
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seconded. (this repo could really benefit from a webpack-defaults update)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uglifyOptions
-> options
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
options
seems good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ooflorent maybe better minifyOptions, because it will be misleading between options for plugin and options for minification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I could see that being a point of possible confusion
05aa6e4
to
933e075
Compare
Close in favor #325 |
Allow to use
uglify-js
andterser
.Next steps:
webpack-defaults
.terser.
, update tests and docs.nodejs@4
).