kopia lustrzana https://github.com/c9/core
make debugging css easier
rodzic
cc31762d57
commit
06f3ad3760
|
@ -45,7 +45,7 @@ function build(config, opts, callback){
|
|||
if (!opts.noArchitect) {
|
||||
mains.push("lib/architect/architect");
|
||||
(opts.ignore || (opts.ignore = [])).push(
|
||||
//path.resolve(__dirname + "/../architect/events"),
|
||||
// path.resolve(__dirname + "/../architect/events"),
|
||||
path.resolve(__dirname + "/../architect/path"),
|
||||
path.resolve(__dirname + "/../architect/fs")
|
||||
);
|
||||
|
@ -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")
|
||||
|
|
Ładowanie…
Reference in New Issue