less-middleware
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -157,3 +157,3 @@ /*! | ||
var error = function(err) { | ||
next('ENOENT' == err.code ? null : err); | ||
return next('ENOENT' == err.code ? null : err); | ||
}; | ||
@@ -192,3 +192,3 @@ | ||
// Only check/recompile if it has not been done at before | ||
if (options.once && imports[lessPath]) { next(); return; } | ||
if (options.once && imports[lessPath]) { return next(); } | ||
@@ -206,5 +206,5 @@ // Compare mtimes | ||
// No CSS file found in dest | ||
compile(); | ||
return compile(); | ||
} else { | ||
next(err); | ||
return next(err); | ||
} | ||
@@ -215,3 +215,3 @@ } else if (lessStats.mtime > cssStats.mtime) { | ||
compile(); | ||
return compile(); | ||
} else { | ||
@@ -223,6 +223,6 @@ // Check if any of the less imports were changed | ||
compile(); | ||
return compile(); | ||
} | ||
next(); | ||
return next(); | ||
}); | ||
@@ -233,5 +233,5 @@ } | ||
} else { | ||
next(); | ||
return next(); | ||
} | ||
}; | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"description": "LESS.js middleware for connect.", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
9327