We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30b89d0 commit 7ea91fcCopy full SHA for 7ea91fc
src/index.js
@@ -390,14 +390,14 @@ class MiniCssExtractPlugin {
390
const [chunkGroup] = chunk.groupsIterable;
391
if (typeof chunkGroup.getModuleIndex2 === 'function') {
392
modules.sort(
393
- (a, b) => chunkGroup.getModuleIndex2(a) - chunkGroup.getModuleIndex2(b)
+ (a, b) => chunkGroup.getModuleIndex2(b) - chunkGroup.getModuleIndex2(a)
394
);
395
} else {
396
// fallback for older webpack versions
397
// (to avoid a breaking change)
398
// TODO remove this in next mayor version
399
// and increase minimum webpack version to 4.12.0
400
- modules.sort((a, b) => a.index2 - b.index2);
+ modules.sort((a, b) => b.index2 - a.index2);
401
}
402
const source = new ConcatSource();
403
const externalsSource = new ConcatSource();
0 commit comments