mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-29 02:30:28 +00:00
feature(config) minification -> minify: {} -> true
This commit is contained in:
parent
a479b73cf2
commit
cb5a529fb4
5 changed files with 39 additions and 66 deletions
|
|
@ -32,7 +32,7 @@
|
|||
/* базовая инициализация */
|
||||
function init(pAppCachProcessing) {
|
||||
var lConfig = main.config,
|
||||
lMinifyAllowed = lConfig.minification;
|
||||
lMinifyAllowed = lConfig.minify;
|
||||
|
||||
/* Change default parameters of
|
||||
* js/css/html minification
|
||||
|
|
@ -179,9 +179,7 @@
|
|||
lName = Path.join(DIR, lName);
|
||||
lMin = Minify.allowed,
|
||||
lExt = Util.getExtension(lName),
|
||||
lResult = lExt === '.js' && lMin.js ||
|
||||
lExt === '.css' && lMin.css ||
|
||||
lExt === '.html' && lMin.html;
|
||||
lResult = lMin && Util.strCmp(lExt, ['.js', '.css', '.html']);
|
||||
|
||||
Util.ifExec(!lResult,
|
||||
function(pParams) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue