summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/php/components/ClientScriptManager.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/php/components/ClientScriptManager.php b/app/php/components/ClientScriptManager.php
index cd948a6..84b9d6f 100644
--- a/app/php/components/ClientScriptManager.php
+++ b/app/php/components/ClientScriptManager.php
@@ -120,7 +120,16 @@ class ClientScriptManager extends TClientScriptManager {
< $this->_getFileCollectionMTime($paths))) {
$scriptContent = implode(
PHP_EOL,
- array_map('file_get_contents', $paths)
+ array_map(
+ function($path) {
+ return trim(
+ TJavaScript::JSMin(
+ file_get_contents($path)
+ )
+ );
+ },
+ $paths
+ )
);
file_put_contents($cacheFile, $scriptContent);
}