Commit 0b3978fd by Andrew Nesbitt

Fixed error in middleware when force option passed

parent 3337060f
......@@ -102,9 +102,6 @@ module.exports = function(options){
: err);
};
// Force
if (force) { return compile(); }
// Compile to cssPath
var compile = function() {
if (debug) { log('read', cssPath); }
......@@ -128,6 +125,9 @@ module.exports = function(options){
});
};
// Force
if (force) { return compile(); }
// Re-compile on server restart, disregarding
// mtimes since we need to map imports
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