mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(server) config
This commit is contained in:
parent
a8eccebeca
commit
addeefdbb2
1 changed files with 6 additions and 7 deletions
|
|
@ -34,16 +34,15 @@
|
|||
|
||||
/* базовая инициализация */
|
||||
function init(pAppCachProcessing) {
|
||||
var lConfig = main.config,
|
||||
lMinifyAllowed = lConfig.minify;
|
||||
|
||||
/* Change default parameters of
|
||||
var config = main.config;
|
||||
/*
|
||||
* Change default parameters of
|
||||
* js/css/html minification
|
||||
*/
|
||||
Minify.setAllowed(lMinifyAllowed);
|
||||
Minify.setAllowed(config.minify);
|
||||
|
||||
/* создаём файл app cache */
|
||||
if (lConfig.appcache && AppCache && lConfig.server )
|
||||
if (config.appcache && AppCache && config.server )
|
||||
Util.exec( pAppCachProcessing );
|
||||
}
|
||||
|
||||
|
|
@ -177,7 +176,7 @@
|
|||
AppCache.watch(lName);
|
||||
|
||||
lName = Path.join(DIR, lName);
|
||||
lMin = Minify.allowed,
|
||||
lMin = lConfig.minify,
|
||||
lExt = Util.getExtension(lName),
|
||||
lResult = lMin && Util.strCmp(lExt, ['.js', '.css', '.html']);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue