diff options
Diffstat (limited to 'lib/minimizer/js.php')
-rw-r--r-- | lib/minimizer/js.php | 4 |
1 files changed, 3 insertions, 1 deletions
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; } } |