File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -390,14 +390,14 @@ class MiniCssExtractPlugin {
390
390
const [ chunkGroup ] = chunk . groupsIterable ;
391
391
if ( typeof chunkGroup . getModuleIndex2 === 'function' ) {
392
392
modules . sort (
393
- ( a , b ) => chunkGroup . getModuleIndex2 ( a ) - chunkGroup . getModuleIndex2 ( b )
393
+ ( a , b ) => chunkGroup . getModuleIndex2 ( b ) - chunkGroup . getModuleIndex2 ( a )
394
394
) ;
395
395
} else {
396
396
// fallback for older webpack versions
397
397
// (to avoid a breaking change)
398
398
// TODO remove this in next mayor version
399
399
// and increase minimum webpack version to 4.12.0
400
- modules . sort ( ( a , b ) => a . index2 - b . index2 ) ;
400
+ modules . sort ( ( a , b ) => b . index2 - a . index2 ) ;
401
401
}
402
402
const source = new ConcatSource ( ) ;
403
403
const externalsSource = new ConcatSource ( ) ;
You can’t perform that action at this time.
0 commit comments