mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
moving out doit from minify to cloudcmd
This commit is contained in:
parent
02f8648c19
commit
5b4f1d146b
4 changed files with 10 additions and 12 deletions
|
|
@ -99,7 +99,7 @@
|
|||
lResetCSS = DIR + 'css/reset.css',
|
||||
lIndex = DIR + 'html/index.html',
|
||||
|
||||
lMinify = Server.Minify;
|
||||
lMinify = Server.CloudServer.Minify;
|
||||
|
||||
if (pAllowed.js) {
|
||||
lOptimizeParams.push(LIBDIR + 'client.js');
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
"appcache" : false,
|
||||
"cache" : {"allowed" : false},
|
||||
"minification" : {
|
||||
"js" : false,
|
||||
"css" : false,
|
||||
"html" : false,
|
||||
"js" : true,
|
||||
"css" : true,
|
||||
"html" : true,
|
||||
"img" : false
|
||||
},
|
||||
"github_key" : "891c251b925e4e967fa9",
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@
|
|||
lCache = this.Cache,
|
||||
lAppCache = this.AppCache,
|
||||
|
||||
lMinifyAllowed = lConfig.minification;
|
||||
lMinifyAllowed = lConfig.minification;
|
||||
|
||||
/* Переменная в которой храниться кэш*/
|
||||
lCache.setAllowed(lConfig.cache.allowed);
|
||||
|
|
@ -299,8 +299,8 @@
|
|||
|
||||
lFromCache_o.cache = false;
|
||||
|
||||
lFileData = CloudServer.Minify.Cache[
|
||||
Path.basename(lName)];
|
||||
if(lMinify.Cache)
|
||||
lFileData = lMinify.Cache[Path.basename(lName)];
|
||||
}
|
||||
var lReadFileFunc_f = CloudServer.getReadFileFunc(lName),
|
||||
/* если там что-то есть передаём данные в функцию readFile */
|
||||
|
|
|
|||
|
|
@ -39,15 +39,13 @@
|
|||
this._allowed = pAllowed;
|
||||
}
|
||||
}),
|
||||
|
||||
|
||||
doit :(function(){
|
||||
|
||||
}),
|
||||
|
||||
optimize: function(pName, pParams){
|
||||
var lResult = true;
|
||||
|
||||
if(!pParams)
|
||||
pParams = {};
|
||||
|
||||
pParams.force = this.force;
|
||||
|
||||
if(!this.MinFolder)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue