summaryrefslogtreecommitdiffstats
path: root/lib/minimizer
diff options
context:
space:
mode:
Diffstat (limited to 'lib/minimizer')
-rw-r--r--lib/minimizer/css.php4
-rw-r--r--lib/minimizer/js.php4
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/minimizer/css.php b/lib/minimizer/css.php
index 4637417579e..09a0efdc3a7 100644
--- a/lib/minimizer/css.php
+++ b/lib/minimizer/css.php
@@ -67,7 +67,9 @@ class OC_Minimizer_CSS extends OC_Minimizer
$remote .= dirname($file_info[2]);
$css_out .= CSSMin::remap($css, dirname($file), $remote, true);
}
- $css_out = CSSMin::minify($css_out);
+ if (!defined('DEBUG') || !DEBUG){
+ $css_out = CSSMin::minify($css_out);
+ }
return $css_out;
}
}
diff --git a/lib/minimizer/js.php b/lib/minimizer/js.php
index 4ddaa79d81a..b9a023e0686 100644
--- a/lib/minimizer/js.php
+++ b/lib/minimizer/js.php
@@ -56,7 +56,9 @@ class OC_Minimizer_JS extends OC_Minimizer
$js_out .= '/* ' . $file . ' */' . "\n";
$js_out .= file_get_contents($file);
}
- $js_out = JavaScriptMinifier::minify($js_out);
+ if (!defined('DEBUG') || !DEBUG){
+ $js_out = JavaScriptMinifier::minify($js_out);
+ }
return $js_out;
}
}