Skip to content

Commit

Permalink
fix: remove not be supported settings (#2462)
Browse files Browse the repository at this point in the history
  • Loading branch information
soda-x authored and sorrycc committed May 23, 2019
1 parent 9bd1b91 commit c2a1814
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ If you want to be compatible with older versions of iOS Safari's flexbox, try to

### uglifyJSOptions

Configuration for [uglifyjs-webpack-plugin@1.x](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/tree/version-1) .
Configuration for [uglifyjs-webpack-plugin@2.x](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/tree/master) .

- Type: `Object` | `Function`
- Default: [af-webpack/src/getConfig/uglifyOptions.js](https://github.com/umijs/umi/blob/master/packages/af-webpack/src/getConfig/uglifyOptions.js#L6)
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ const config = {

### uglifyJSOptions

配置传给 [uglifyjs-webpack-plugin@1.x](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/tree/version-1) 的配置项。
配置传给 [uglifyjs-webpack-plugin@2.x](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/tree/master) 的配置项。

* 类型:`Object` | `Function`
* 默认:[af-webpack/src/getConfig/uglifyOptions.js](https://github.com/umijs/umi/blob/master/packages/af-webpack/src/getConfig/uglifyOptions.js#L6)
Expand Down
10 changes: 2 additions & 8 deletions packages/af-webpack/src/getConfig/uglifyOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
*/
export default {
uglifyOptions: {
parse: {
ecma: 8,
},
parse: {},
compress: {
ecma: 5,
warnings: false,

// turn off flags with small gains to speed up minification
Expand Down Expand Up @@ -42,11 +39,8 @@ export default {
dead_code: true,
evaluate: true,
},
mangle: {
safari10: true,
},
mangle: {},
output: {
ecma: 5,
comments: false,
ascii_only: true,
},
Expand Down

0 comments on commit c2a1814

Please sign in to comment.