less-middleware
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -68,3 +68,3 @@ /*! | ||
var log = function(key, val, type) { | ||
if(options.debug) { | ||
if(options.debug || type === 'error') { | ||
switch(type) { | ||
@@ -140,2 +140,7 @@ case 'log': | ||
parser.parse(str, function(err, tree) { | ||
if (err) { | ||
callback(err, css); | ||
return; | ||
} | ||
var css = tree.toCSS({ | ||
@@ -142,0 +147,0 @@ compress: (options.compress == 'auto' ? regex.compress.test(cssPath) : options.compress), |
@@ -5,3 +5,3 @@ { | ||
"description": "LESS.js middleware for connect.", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
12393
225