Commit 0b3978fd by Andrew Nesbitt

Fixed error in middleware when force option passed

parent 3337060f
...@@ -102,9 +102,6 @@ module.exports = function(options){ ...@@ -102,9 +102,6 @@ module.exports = function(options){
: err); : err);
}; };
// Force
if (force) { return compile(); }
// Compile to cssPath // Compile to cssPath
var compile = function() { var compile = function() {
if (debug) { log('read', cssPath); } if (debug) { log('read', cssPath); }
...@@ -128,6 +125,9 @@ module.exports = function(options){ ...@@ -128,6 +125,9 @@ module.exports = function(options){
}); });
}; };
// Force
if (force) { return compile(); }
// Re-compile on server restart, disregarding // Re-compile on server restart, disregarding
// mtimes since we need to map imports // mtimes since we need to map imports
if (!imports[sassPath]) { return compile(); } if (!imports[sassPath]) { return compile(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment