File tree Expand file tree Collapse file tree 1 file changed +19
-13
lines changed
test/statsCases/warnings-uglifyjs Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change 1- "use strict" ;
21const webpack = require ( "../../../" ) ;
32
43module . exports = {
54 entry : "./index" ,
65 output : {
76 filename : "bundle.js"
87 } ,
9- plugins : [ new webpack . optimize . UglifyJsPlugin ( {
10- warningsFilter : function ( filename ) {
11- return / a \. j s $ / . test ( filename ) ;
12- } ,
13- sourceMap : true ,
14- compress : {
15- warnings : true ,
16- } ,
17- mangle : false ,
18- beautify : true ,
19- comments : false
20- } ) ] ,
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+ warningsFilter ( filename ) {
23+ return / a \. j s $ / . test ( filename ) ;
24+ }
25+ } )
26+ ] ,
2127 stats : {
2228 chunkModules : false ,
2329 modules : true ,
You can’t perform that action at this time.
0 commit comments