mirror of
https://github.com/mrclay/minify.git
synced 2025-09-11 22:50:45 +02:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
2c83b82bfa | ||
|
32150b84b6 | ||
|
48a34d6900 | ||
|
a36e201ab2 | ||
|
fefc85d481 | ||
|
21cc3e7224 | ||
|
176fb1084f |
12
HISTORY.txt
12
HISTORY.txt
@@ -1,6 +1,16 @@
|
||||
Minify Release History
|
||||
|
||||
Version 2.3.0
|
||||
Version 2.3.2 (2017-06-09)
|
||||
* PHP 7.1 compatibility fix. #600
|
||||
|
||||
Version 2.3.1 (2017-04-03)
|
||||
* No longer alters inline SVG id URLs. #517, #519
|
||||
* Use $min_libPath in examples and move it within config.php. #522, #524
|
||||
* Prevent false mod_rewrite error. #540
|
||||
* Sync JSMin with mrclay/jsmin-php. #537
|
||||
* URI rewriter passes through empty URLs. #561, #564
|
||||
|
||||
Version 2.3.0 (2016-03-11)
|
||||
* Adds `$min_concatOnly` option to just concatenate files
|
||||
* Deprecates use of Minify_Loader
|
||||
* Deprecates use of Minify_Logger
|
||||
|
@@ -67,24 +67,6 @@ $min_serveOptions['minifiers']['text/css'] = 'yuiCss';
|
||||
|
||||
Minify has added Túbal Martín's [PHP port](https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port/blob/master/cssmin.php) of the YUI Compressor's CSSmin. While it is not completely integrated yet, you may try it out:
|
||||
|
||||
```
|
||||
function yuiCssPort($css, $options) {
|
||||
$compressor = new CSSmin();
|
||||
$css = $compressor->run($css, 9999999);
|
||||
|
||||
$css = Minify_CSS_UriRewriter::rewrite(
|
||||
$css,
|
||||
$options['currentDir'],
|
||||
isset($options['docRoot']) ? $options['docRoot'] : $_SERVER['DOCUMENT_ROOT'],
|
||||
isset($options['symlinks']) ? $options['symlinks'] : array()
|
||||
);
|
||||
return $css;
|
||||
}
|
||||
$min_serveOptions['minifiers']['text/css'] = 'yuiCssPort';
|
||||
```
|
||||
|
||||
As of commit [218f37](https://github.com/mrclay/minify/commit/218f37fb44f9be2ea138cf9efb8b7f6dc84bad7f), this is easier:
|
||||
|
||||
```
|
||||
$min_serveOptions['minifiers']['text/css'] = array('Minify_CSSmin', 'minify');
|
||||
```
|
||||
|
@@ -766,9 +766,9 @@ class CSSmin
|
||||
{
|
||||
if (is_string($size)) {
|
||||
switch (substr($size, -1)) {
|
||||
case 'M': case 'm': return $size * 1048576;
|
||||
case 'K': case 'k': return $size * 1024;
|
||||
case 'G': case 'g': return $size * 1073741824;
|
||||
case 'M': case 'm': return (int) $size * 1048576;
|
||||
case 'K': case 'k': return (int) $size * 1024;
|
||||
case 'G': case 'g': return (int) $size * 1073741824;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user