mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
minor changes
This commit is contained in:
parent
f1b720d2e3
commit
4e90d78619
1 changed files with 8 additions and 5 deletions
13
server.js
13
server.js
|
|
@ -131,16 +131,19 @@ CloudServer.init = (function(){
|
|||
*/
|
||||
this.Minify.setAllowed(CloudServer.Config.minification);
|
||||
/* Если нужно минимизируем скрипты */
|
||||
this.Minify.doit();
|
||||
this.Minify._allowed = this.Minify.doit();
|
||||
|
||||
|
||||
var lAppCache = CloudServer.AppCache;
|
||||
/* создаём файл app cache */
|
||||
if(this.Config.appcache && lAppCache && this.Config.server){
|
||||
lAppCache.addFiles(
|
||||
[{'//themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff' : './font/DroidSansMono.woff'},
|
||||
{'//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js' : './lib/client/jquery.js'},
|
||||
'./min/all.min.css']);
|
||||
var lFiles = [{'//themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff' : './font/DroidSansMono.woff'},
|
||||
{'//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js' : './lib/client/jquery.js'}];
|
||||
|
||||
if(this.Minify._allowed.css)
|
||||
lFiles.push('./min/all.min.css');
|
||||
|
||||
lAppCache.addFiles(lFiles);
|
||||
lAppCache.createManifest();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue