make debugging css easier

pull/117/merge
nightwing 2015-07-01 06:34:36 +04:00
rodzic cc31762d57
commit 06f3ad3760
1 zmienionych plików z 4 dodań i 2 usunięć

4
node_modules/architect-build/build.js wygenerowano vendored
Wyświetl plik

@ -197,7 +197,8 @@ function compileLess(opts, sources, callback) {
compileLessFragment(file.code, opts.lessLibs, root, plugin.staticPrefix, file.path, opts.compress, function(err, css) {
if (err)
return callback(err);
if (css)
css += "\n/*# sourceURL=css/" + file.pkg.id.substr(5) + " */";
if (cacheKey)
cache.less[cacheKey] = css;
code.push(css);
@ -206,6 +207,7 @@ function compileLess(opts, sources, callback) {
}, function(err) {
if (opts.lessLibs.css) {
code.push(opts.lessLibs.css);
code.push("\n/*# sourceURL=css/libs */");
}
callback(err, {
code: code.join("\n")