mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
refactored
This commit is contained in:
parent
9d79105dd7
commit
697541b7d9
2 changed files with 6 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
|||
"appcache" : false,
|
||||
"minification" : {
|
||||
"js" : true,
|
||||
"css" : true,
|
||||
"css" : false,
|
||||
"html" : true,
|
||||
"img" : true
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue