Skip to content

Commit 6b1872c

Browse files
committed
make the test the other way around
1 parent 5b96f00 commit 6b1872c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/statsCases/warnings-uglifyjs/expected.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ chunk {0} bundle.js (main) 1.04 kB [entry] [rendered]
88
[2] (webpack)/test/statsCases/warnings-uglifyjs/index.js 299 bytes {0} [built]
99

1010
WARNING in bundle.js from UglifyJs
11-
Dropping unused function someUnUsedFunction1 [./index.js:8,0]
12-
Dropping unused function someUnUsedFunction2 [./index.js:9,0]
13-
Dropping unused function someUnUsedFunction3 [./index.js:10,0]
14-
Dropping unused function someUnUsedFunction4 [./index.js:11,0]
15-
Dropping unused function someUnUsedFunction5 [./index.js:12,0]
11+
Dropping unused function someUnRemoteUsedFunction1 [./a.js:3,0]
12+
Dropping unused function someUnRemoteUsedFunction2 [./a.js:4,0]
13+
Dropping unused function someUnRemoteUsedFunction3 [./a.js:5,0]
14+
Dropping unused function someUnRemoteUsedFunction4 [./a.js:6,0]
15+
Dropping unused function someUnRemoteUsedFunction5 [./a.js:7,0]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
},
88
plugins: [new webpack.optimize.UglifyJsPlugin({
99
warningsFilter: function(filename) {
10-
return !/a\.js$/.test(filename);
10+
return /a\.js$/.test(filename);
1111
},
1212
sourceMap: true,
1313
compress: {

0 commit comments

Comments
 (0)