We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31b4cf9 + cd94d8d commit bc0a215Copy full SHA for bc0a215
lib/local-css.js
@@ -22,11 +22,8 @@ module.exports = function (filename) {
22
23
var loader = new FileSystemLoader(path.dirname(filename));
24
loader.fetch(path.basename(filename), '/').then(function (tokens) {
25
- var sources = Object.keys(loader.sources).map(function (key) {
26
- return loader.sources[key];
27
- });
28
var output = "module.exports = " + JSON.stringify(tokens) +
29
- "\nmodule.exports.toString = function () { return " + JSON.stringify(sources.join('\n')) + "; }";
+ "\nmodule.exports.toString = function () { return " + JSON.stringify(loader.finalSource) + "; }";
30
31
self.queue(output);
32
self.queue(null);
0 commit comments