diff --git a/json/config.json b/json/config.json index 69ce0eb2..a8cd4570 100644 --- a/json/config.json +++ b/json/config.json @@ -3,7 +3,7 @@ "appcache" : false, "minification" : { "js" : true, - "css" : true, + "css" : false, "html" : true, "img" : true }, diff --git a/lib/server.js b/lib/server.js index 2064cff7..fdc4161b 100644 --- a/lib/server.js +++ b/lib/server.js @@ -262,14 +262,13 @@ AppCache.watch(lName); Util.log(Path.basename(lName)); - var lMin = lConfig.minification, - lExt = Util.getExtension(lName), - lResult = lExt === '.js' && lMin.js || - lExt === '.css' && lMin.css || - lExt === '.html' && lMin.html; + var lExt = Util.getExtension(lName), + lResult = lExt === '.js' || + lExt === '.css' || + lExt === '.html'; - Util.ifExec(lResult, function(){ + Util.ifExec(!lResult, function(){ main.sendFile({ name: lName, request: pReq,