1
0
mirror of https://github.com/mrclay/minify.git synced 2025-09-09 05:30:41 +02:00

Adds config option to concatenate files only

This commit is contained in:
Kaue Santoja
2015-09-02 17:08:33 -03:00
committed by Steve Clay
parent cabd595a5a
commit d233b65d3d
6 changed files with 41 additions and 10 deletions

View File

@@ -52,6 +52,10 @@ if ($min_allowDebugFlag) {
$min_serveOptions['debug'] = Minify_DebugDetector::shouldDebugRequest($_COOKIE, $_GET, $_SERVER['REQUEST_URI']);
}
if (!empty($min_concatOnly)) {
$min_serveOptions['concatOnly'] = true;
}
if ($min_errorLogger) {
if (true === $min_errorLogger) {
$min_errorLogger = FirePHP::getInstance(true);
@@ -74,8 +78,10 @@ if (isset($_GET['g'])) {
if (isset($_GET['f']) || isset($_GET['g'])) {
if (! isset($min_serveController)) {
$min_serveController = new Minify_Controller_MinApp();
}
}
Minify::serve($min_serveController, $min_serveOptions);
} elseif ($min_enableBuilder) {
header('Location: builder/');