2015-06-24 16:01:35 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Easy Min
|
|
|
|
*
|
|
|
|
* Simple minification for better website performance
|
|
|
|
*
|
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2012
|
|
|
|
* @link https://github.com/aviat4ion/Easy-Min
|
|
|
|
* @license http://philsturgeon.co.uk/code/dbad-license
|
|
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
2015-06-26 12:03:42 -04:00
|
|
|
/* $config = */require 'config.php';
|
2015-06-24 16:01:35 -04:00
|
|
|
|
2015-06-26 12:03:42 -04:00
|
|
|
$config = (object)$config;
|
|
|
|
|
|
|
|
// Should we use myth to preprocess?
|
|
|
|
$use_myth = FALSE;
|
2015-06-24 16:01:35 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| CSS Folder
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| The folder where css files exist, in relation to the document root
|
|
|
|
|
|
|
|
|
*/
|
2015-06-26 12:03:42 -04:00
|
|
|
$css_root = $config->asset_dir. '/css/';
|
2015-06-24 16:01:35 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Path from
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Path fragment to rewrite in css files
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
$path_from = '';
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Path to
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| The path fragment replacement for the css files
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
$path_to = '';
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| JS Folder
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| The folder where javascript files exist, in relation to the document root
|
|
|
|
|
|
|
|
|
*/
|
2015-06-26 12:03:42 -04:00
|
|
|
$js_root = $config->asset_dir. '/js/';
|