Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Always use initial base url when resolving intermediate @import rules
Browse files Browse the repository at this point in the history
Otherwise the path differences keep accumulating and we miss entries in the map of urls to css text
  • Loading branch information
dfreedm committed Apr 9, 2014
1 parent 896e245 commit de6be26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/styleloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ StyleResolver.prototype = {
// resolve any css text to be relative to the importer
intermediate = urlResolver.resolveCssText(map[url], url);
// flatten intermediate @imports
intermediate = this.flatten(intermediate, url, map);
intermediate = this.flatten(intermediate, base, map);
text = text.replace(match.matched, intermediate);
}
return text;
Expand Down

0 comments on commit de6be26

Please sign in to comment.