File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
test/cases/filename-function Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -372,9 +372,9 @@ class MiniCssExtractPlugin {
372372 }
373373
374374 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 ;
378378 }
379379
380380 isFunction ( functionToCheck ) {
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ module.exports = {
1818 } ,
1919 plugins : [
2020 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' ,
2323 } ) ,
2424 ] ,
2525} ;
You can’t perform that action at this time.
0 commit comments