1
0
mirror of https://github.com/mrclay/minify.git synced 2025-09-03 10:53:12 +02:00

CLI minify!

This commit is contained in:
Steve Clay
2012-02-28 16:58:35 -05:00
parent f2372744c5
commit bcd231eb7c
2 changed files with 90 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ if (! $cli->validate()) {
if ($cli->isHelpRequest) {
echo $cli->getArgumentsListing();
}
echo "EXAMPLE: ./rewrite-uris.php -t -d../.. ../../min_unit_tests/_test_files/css/paths_rewrite.css ../../min_unit_tests/_test_files/css/comments.css
echo "EXAMPLE: ./rewrite-uris.php -v -d../.. ../../min_unit_tests/_test_files/css/paths_rewrite.css ../../min_unit_tests/_test_files/css/comments.css
\n";
exit(0);
}
@@ -39,7 +39,6 @@ $pathRewriter = function($css, $options) {
};
$paths = $cli->getPathArgs();
var_export($paths);
$sources = array();
foreach ($paths as $path) {
@@ -52,7 +51,7 @@ foreach ($paths as $path) {
} else {
$sources[] = new Minify_Source(array(
'id' => $path,
'content' => "/* $path not found */\n",
'content' => "/*** $path not found ***/\n",
'minifier' => '',
));
}