File tree 6 files changed +6
-11
lines changed
insert-function/expected/webpack-5
insert-string/expected/webpack-5
insert-undefined/expected/webpack-5
6 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ class MiniCssExtractPlugin {
479
479
`${ webpack . RuntimeGlobals . require } .miniCssF` ,
480
480
( referencedChunk ) => {
481
481
if ( ! referencedChunk . contentHash [ MODULE_TYPE ] ) {
482
- return '' ;
482
+ return false ;
483
483
}
484
484
485
485
return referencedChunk . canBeInitial ( )
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ module.exports = function (urlString) {
358
358
/******/ // This function allow to reference all chunks
359
359
/******/ __webpack_require__ . miniCssF = ( chunkId ) => {
360
360
/******/ // return url for filenames based on template
361
- /******/ return "" + "main" + ".css" ;
361
+ /******/ return undefined ;
362
362
/******/ } ;
363
363
/******/ } ) ( ) ;
364
364
/******/
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import Self from '../../../src';
4
4
5
5
module . exports = {
6
6
entry : './index.css' ,
7
+ mode : 'development' ,
7
8
module : {
8
9
rules : [
9
10
{
Original file line number Diff line number Diff line change 54
54
/******/ ( ( ) => {
55
55
/******/ // This function allow to reference all chunks
56
56
/******/ __webpack_require__ . miniCssF = ( chunkId ) => {
57
- /******/ // return url for filenames not based on template
58
- /******/ if ( chunkId === 1 ) return "1.css" ;
59
57
/******/ // return url for filenames based on template
60
- /******/ return "" + "main" + ".css" ;
58
+ /******/ return "" + chunkId + ".css" ;
61
59
/******/ } ;
62
60
/******/ } ) ( ) ;
63
61
/******/
Original file line number Diff line number Diff line change 54
54
/******/ ( ( ) => {
55
55
/******/ // This function allow to reference all chunks
56
56
/******/ __webpack_require__ . miniCssF = ( chunkId ) => {
57
- /******/ // return url for filenames not based on template
58
- /******/ if ( chunkId === 1 ) return "1.css" ;
59
57
/******/ // return url for filenames based on template
60
- /******/ return "" + "main" + ".css" ;
58
+ /******/ return "" + chunkId + ".css" ;
61
59
/******/ } ;
62
60
/******/ } ) ( ) ;
63
61
/******/
Original file line number Diff line number Diff line change 54
54
/******/ ( ( ) => {
55
55
/******/ // This function allow to reference all chunks
56
56
/******/ __webpack_require__ . miniCssF = ( chunkId ) => {
57
- /******/ // return url for filenames not based on template
58
- /******/ if ( chunkId === 1 ) return "1.css" ;
59
57
/******/ // return url for filenames based on template
60
- /******/ return "" + "main" + ".css" ;
58
+ /******/ return "" + chunkId + ".css" ;
61
59
/******/ } ;
62
60
/******/ } ) ( ) ;
63
61
/******/
You can’t perform that action at this time.
0 commit comments