Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Commit 28dc00d

Browse files
squash
1 parent 4e6b819 commit 28dc00d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ module.exports = {
4343
|**`test`**|`{RegExp\|Array<RegExp>}`| <code>/\.js($&#124;\?)/i</code>|Test to match files against|
4444
|**`include`**|`{RegExp\|Array<RegExp>}`|`undefined`|Files to `include`|
4545
|**`exclude`**|`{RegExp\|Array<RegExp>}`|`undefined`|Files to `exclude`|
46-
|**`sourceMap`**|`{Boolean}`|`false`|Use SourceMaps to map error message locations to modules (This slows down the compilation) ⚠️ **`cheap-source-map` options don't work with the plugin!**|
47-
|**`uglifyOptions`**|`{Object}`|``|`uglify-es` [Options]()|
46+
|**`sourceMap`**|`{Boolean}`|`false`|Use SourceMaps to map error message locations to modules (This slows down the compilation) ⚠️ **`cheap-source-map` options don't work with this plugin**|
47+
|**`uglifyOptions`**|`{Object}`|[`{}`](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/tree/readme#uglifyoptions)|`uglify` [Options]((https://github.com/mishoo/UglifyJS2/tree/master#minify-options)|
4848
|**`extractComments`**|`{Boolean\|RegExp\|Function<(node, comment) -> {Boolean\|Object}>}`|`false`|Whether comments shall be extracted to a separate file, (see [details](https://github.com/webpack/webpack/commit/71933e979e51c533b432658d5e37917f9e71595a) (`webpack >= 2.3.0`)|
4949
|**`warningsFilter`**|`{Function(source) -> {Boolean}}`|``|Allow to filter uglify warnings|
5050

@@ -100,8 +100,8 @@ module.exports = {
100100
|:--:|:--:|:-----:|:----------|
101101
|**`ie8`**|`{Boolean}`|`false`|Enable IE8 Support|
102102
|**[`parse`](https://github.com/mishoo/UglifyJS2/tree/master#parse-options)**|`{Object}`|`{}`|Additional Parse Options|
103-
|**[`mangle`](https://github.com/mishoo/UglifyJS2/tree/master#mangle-options)**|`{Boolean\|Object}`|`true`|Enable Name Mangling (See [Mangle Properties](https://github.com/mishoo/UglifyJS2/tree/master#mangle-properties-options) for advanced setups, use with ⚠️ )|
104-
|**[`output`](https://github.com/mishoo/UglifyJS2/tree/master#output-options)**|`{Object}`|`{}`|Additional Output Options (ℹ️ The defaults are optimized for best compression)|
103+
|**[`mangle`](https://github.com/mishoo/UglifyJS2/tree/master#mangle-options)**|`{Boolean\|Object}`|`true`|Enable Name Mangling (See [Mangle Properties](https://github.com/mishoo/UglifyJS2/tree/master#mangle-properties-options) for advanced setups, use with ⚠️)|
104+
|**[`output`](https://github.com/mishoo/UglifyJS2/tree/master#output-options)**|`{Object}`|`{}`|Additional Output Options (The defaults are optimized for best compression)|
105105
|**[`compress`](https://github.com/mishoo/UglifyJS2/tree/master#compress-options)**|`{Boolean\|Object}`|`true`|Additional Compress Options|
106106
|**`warnings`**|`{Boolean}`|`false`|Display Warnings|
107107

@@ -110,7 +110,7 @@ module.exports = {
110110
[
111111
new UglifyJSPlugin({
112112
uglifyOptions: {
113-
ie8: false
113+
ie8: false,
114114
parse: {...options},
115115
mangle: {
116116
...options,
@@ -119,8 +119,8 @@ module.exports = {
119119
}
120120
},
121121
output: {
122-
comments: false
123-
beautify: false
122+
comments: false,
123+
beautify: false,
124124
...options
125125
},
126126
compress: {...options},

0 commit comments

Comments
 (0)