From 697541b7d949cf4b0c363e1142f2b03446c9b4e2 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 31 Jan 2013 09:02:12 -0500 Subject: [PATCH] refactored --- json/config.json | 2 +- lib/server.js | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) 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,