Permalink
Browse files

Don't minify if filename have .min in it

Sometimes minifying javascript file which already is minified, cause
problems.
  • Loading branch information...
canvural committed Jun 20, 2013
1 parent 4f2ed14 commit 8c2b12a6e6c4ccec8895955ce1275024bbf6287d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Munee/Asset/Type.php
View
@@ -232,7 +232,7 @@ protected function getFileContent($originalFile, $cacheFile)
if (! is_array($arguments)) {
$arguments = array($filterName => $arguments);
}
if(strpos($originalFile, '.min') !== FALSE) {
if(strpos($originalFile, '.min.') !== FALSE) {
$arguments['minify'] = false;
}
$Filter->doFilter($cacheFile, $arguments, $this->options);

0 comments on commit 8c2b12a

Please sign in to comment.