Skip to content

Commit

Permalink
fixed a bug with incorrect ordering of index and index2
Browse files Browse the repository at this point in the history
this caused incorrect order of rules in extracted css
expose index and index2 to the stats
  • Loading branch information
sokra committed Aug 6, 2015
1 parent 25c124c commit 8f44bc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Dependency.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Dependency.compareLocations = function(a, b) {
if(typeof b === "string") {
return -1;
} else if(typeof b === "object") {
if(a.start) a = a.start;
if(b.start) b = b.start;
if(a.line < b.line) return -1;
if(a.line > b.line) return 1;
if(a.column < b.column) return -1;
Expand Down
2 changes: 2 additions & 0 deletions lib/Stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ Stats.prototype.toJson = function toJson(options, forToString) {
id: module.id,
identifier: module.identifier(),
name: module.readableIdentifier(requestShortener),
index: module.index,
index2: module.index2,
size: module.size(),
cacheable: !!module.cacheable,
built: !!module.built,
Expand Down

1 comment on commit 8f44bc3

@timaschew
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, this seems to fix #215

Please sign in to comment.