Skip to content

Commit cb56d18

Browse files
test(statsCases/filter-warnings): update to new options interface (options.uglifyOptions)
1 parent da889c7 commit cb56d18

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

test/statsCases/filter-warnings/webpack.config.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
1-
"use strict";
21
const webpack = require("../../../");
32

43
const baseConfig = {
54
entry: "./index",
65
output: {
76
filename: "bundle.js"
87
},
9-
plugins: [new webpack.optimize.UglifyJsPlugin({
10-
sourceMap: true,
11-
compress: {
12-
warnings: true,
13-
},
14-
mangle: false,
15-
beautify: true,
16-
comments: false
17-
})],
8+
plugins: [
9+
new webpack.optimize.UglifyJsPlugin({
10+
sourceMap: true,
11+
uglifyOptions: {
12+
compress: {
13+
warnings: true,
14+
},
15+
mangle: false,
16+
output: {
17+
beautify: true,
18+
comments: false
19+
},
20+
warnings: true
21+
}
22+
})
23+
],
1824
stats: {
1925
chunkModules: false,
2026
modules: false,

0 commit comments

Comments
 (0)