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

Commit 043cb24

Browse files
committed
build: Fix webpack umd build for UglifyJs options
1 parent 884ef39 commit 043cb24

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

build/webpack.config.js

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,26 @@ module.exports = {
3131
),
3232
new UglifyJSPlugin({
3333
sourceMap: false,
34-
beautify: false,
35-
mangle: {
36-
toplevel: true,
37-
keep_fnames: false
38-
},
39-
compressor: {
40-
warnings: false,
41-
conditionals: true,
42-
unused: true,
43-
comparisons: true,
44-
sequences: true,
45-
dead_code: true,
46-
evaluate: true,
47-
if_return: true,
48-
join_vars: true,
49-
negate_iife: false
50-
},
51-
comments: false
34+
uglifyOptions: {
35+
beautify: false,
36+
mangle: {
37+
toplevel: true,
38+
keep_fnames: false
39+
},
40+
compressor: {
41+
warnings: false,
42+
conditionals: true,
43+
unused: true,
44+
comparisons: true,
45+
sequences: true,
46+
dead_code: true,
47+
evaluate: true,
48+
if_return: true,
49+
join_vars: true,
50+
negate_iife: false
51+
},
52+
comments: false
53+
}
5254
})
5355
]
5456
};

0 commit comments

Comments
 (0)