mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 18:59:56 +09:00
merge from 1.7.3.5(r13153:r13167)
git-svn-id: http://xe-core.googlecode.com/svn/trunk@13168 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cc47d2b247
commit
2d3f149b5a
2042 changed files with 129266 additions and 126243 deletions
|
|
@ -94,17 +94,19 @@ function execute($dir) {
|
|||
echo " Minifying CSS files...";
|
||||
$css_files = get_target_files('css', $dir, $files_to_skip);
|
||||
|
||||
if(count($css_files) && !class_exists('CssMin')) {
|
||||
require dirname(__FILE__).'/cssmin/cssmin.php';
|
||||
if(count($css_files) && !class_exists('CSSmin')) {
|
||||
require dirname(__FILE__).'/cssmin/CSSmin.php';
|
||||
}
|
||||
|
||||
$oCSSmin = new CSSmin();
|
||||
|
||||
foreach($css_files as $file) {
|
||||
if(!is_readable($file)) continue;
|
||||
|
||||
$target = preg_replace('@\.css$@', '.min.css', $file);
|
||||
$content = file_get_contents($file);
|
||||
|
||||
file_put_contents($target, $copyright.CssMin::minify($content, $option));
|
||||
file_put_contents($target, $copyright.$oCSSmin->run($content));
|
||||
echo '.';
|
||||
}
|
||||
echo " Done\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue