File tree 2 files changed +5
-5
lines changed
test/cases/filename-function
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -372,9 +372,9 @@ class MiniCssExtractPlugin {
372
372
}
373
373
374
374
getFilename ( chunk , filename ) {
375
- return this . isFunction ( filename )
376
- ? filename ( chunk . chunk || chunk )
377
- : filename ;
375
+ console . log ( '--chunk--' ) ;
376
+ console . log ( chunk ) ;
377
+ return this . isFunction ( filename ) ? filename ( chunk ) : filename ;
378
378
}
379
379
380
380
isFunction ( functionToCheck ) {
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ module.exports = {
18
18
} ,
19
19
plugins : [
20
20
new Self ( {
21
- filename : ( data ) => data . chunk . name == 'app' ? 'this.is.app.css' : `[name].css` ,
22
- chunkFilename : ( data ) => '[name].css' ,
21
+ filename : ( chunk ) => chunk . name == 'app' ? 'this.is.app.css' : `[name].css` ,
22
+ chunkFilename : ( chunk ) => '[name].css' ,
23
23
} ) ,
24
24
] ,
25
25
} ;
You can’t perform that action at this time.
0 commit comments