1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-29 16:49:47 +02:00

Remove JSMin+ and old, unfinished CssCompressor port

JSMin+ was a good effort but is unmaintained and has collected several
reports of impractical memory usage for a project like this.
This commit is contained in:
Steve Clay
2015-09-29 10:38:22 -04:00
parent fede83cd48
commit e2efb342a8
8 changed files with 4 additions and 2701 deletions

View File

@@ -35,14 +35,14 @@ To change minifier, set `minifier` to a [callback](http://php.net/manual/en/lang
```php
$src1 = new Minify_Source(array(
'filepath' => '//js/file1.js',
'minifier' => ['JSMinPlus', 'minify'],
'minifier' => 'myJsMinifier',
));
$src2 = new Minify_Source(array(
'filepath' => '//js/file2.js',
'minifier' => '', // don't compress
));
```
In the above, `JSMinPlus.php` is only loaded when the contents of `$src1` is needed.
In the above, `JmyJsMinifier()` is only called when the contents of `$src1` is needed.
**`*`Do _not_ use `create_function()` or anonymous functions for the minifier.** The internal names of these function tend to vary, causing endless cache misses, killing performance and filling cache storage up.