mirror of
https://github.com/mrclay/minify.git
synced 2025-08-30 17:19:54 +02:00
Minify no longer tries to minify -min.js/.min.js files
2.2 used empty string as a magical value meaning do not minify, but in the refactoring `Minify::combineMinify` forgot to interpret this value that way and instead inherited the default compressor for the type. This eliminates `""` as a magical value, but for BC rewrites it to `Minify::nullMinifier` in the sources. Fixes #499
This commit is contained in:
@@ -39,7 +39,7 @@ $src1 = new Minify_Source(array(
|
||||
));
|
||||
$src2 = new Minify_Source(array(
|
||||
'filepath' => '//js/file2.js',
|
||||
'minifier' => '', // don't compress
|
||||
'minifier' => 'Minify::nullMinifier', // don't compress
|
||||
));
|
||||
```
|
||||
In the above, `JmyJsMinifier()` is only called when the contents of `$src1` is needed.
|
||||
|
Reference in New Issue
Block a user