Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 054a3de

Browse files
joshwiensmichael-ciniawsky
authored andcommitted
test: Failing test for css ordering
1 parent 27e3a28 commit 054a3de

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ class ExtractTextPlugin {
144144
async.forEach(chunks, (chunk, callback) => { // eslint-disable-line no-shadow
145145
const extractedChunk = extractedChunks[chunks.indexOf(chunk)];
146146
const shouldExtract = !!(options.allChunks || isInitialOrHasNoParents(chunk));
147+
chunk.sortModules(module);
147148
async.forEach(chunk.mapModules(c => c), (module, callback) => { // eslint-disable-line no-shadow
148149
let meta = module[NS];
149150
if (meta && (!meta.options.id || meta.options.id === id)) {

test/__snapshots__/webpack-integration.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
exports[`Webpack Integration Tests chunk-modules-css-wrong-order 1`] = `
44
".block {
5-
font-size: 16px;
5+
color: tomato;
66
}
77
.App {
8-
text-align: center;
8+
color: black;
99
}
1010
"
1111
`;

0 commit comments

Comments
 (0)