Skip to content

Commit bc0a215

Browse files
committed
Merge pull request #1 from joshgillies/master
Update to use loader.finalSource for exported stylesheet
2 parents 31b4cf9 + cd94d8d commit bc0a215

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/local-css.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ module.exports = function (filename) {
2222

2323
var loader = new FileSystemLoader(path.dirname(filename));
2424
loader.fetch(path.basename(filename), '/').then(function (tokens) {
25-
var sources = Object.keys(loader.sources).map(function (key) {
26-
return loader.sources[key];
27-
});
2825
var output = "module.exports = " + JSON.stringify(tokens) +
29-
"\nmodule.exports.toString = function () { return " + JSON.stringify(sources.join('\n')) + "; }";
26+
"\nmodule.exports.toString = function () { return " + JSON.stringify(loader.finalSource) + "; }";
3027

3128
self.queue(output);
3229
self.queue(null);

0 commit comments

Comments
 (0)