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

Commit

Permalink
test: Failing test for css ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwiens authored and michael-ciniawsky committed Jul 7, 2017
1 parent 27e3a28 commit 054a3de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ class ExtractTextPlugin {
async.forEach(chunks, (chunk, callback) => { // eslint-disable-line no-shadow
const extractedChunk = extractedChunks[chunks.indexOf(chunk)];
const shouldExtract = !!(options.allChunks || isInitialOrHasNoParents(chunk));
chunk.sortModules(module);
async.forEach(chunk.mapModules(c => c), (module, callback) => { // eslint-disable-line no-shadow
let meta = module[NS];
if (meta && (!meta.options.id || meta.options.id === id)) {
Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/webpack-integration.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

exports[`Webpack Integration Tests chunk-modules-css-wrong-order 1`] = `
".block {
font-size: 16px;
color: tomato;
}
.App {
text-align: center;
color: black;
}
"
`;
Expand Down

0 comments on commit 054a3de

Please sign in to comment.