1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-31 01:29:56 +02:00

JSMin.php : trimmed output, better exception messages

Removed unnecessary wrapper Minify_Javascript
This commit is contained in:
Steve Clay
2009-03-29 22:57:35 +00:00
parent 235642049c
commit 974ceffa4c
12 changed files with 81 additions and 106 deletions

View File

@@ -8,7 +8,7 @@ if (isset($_FILES['subject']['name'])
// easier to just require them all
require 'Minify/HTML.php';
require 'Minify/CSS.php';
require 'Minify/Javascript.php';
require 'JSMin.php';
$arg2 = null;
switch ($m[1]) {
@@ -24,7 +24,7 @@ if (isset($_FILES['subject']['name'])
$type = 'HTML';
$arg2 = array(
'cssMinifier' => array('Minify_CSS', 'minify')
,'jsMinifier' => array('Minify_Javascript', 'minify')
,'jsMinifier' => array('JSMin', 'minify')
);
}
$func = array('Minify_' . $type, 'minify');