diff --git a/EAssetManagerBoost.php b/EAssetManagerBoost.php index 22be045..8ec4ca7 100644 --- a/EAssetManagerBoost.php +++ b/EAssetManagerBoost.php @@ -27,6 +27,16 @@ */ class EAssetManagerBoost extends CAssetManager { + /** + * @var array $ignoredPaths specify the path parts that + * the extension will check against in order to not compress/minify the + * files/directories. + */ + public $ignoredPaths = array( + 'bootstrap', + 'ckeditor', + 'highcharts', + ); /** * @var mixed $minifiedExtensionFlags specify the extension names that * the extension will check against in order to not compress/minify the @@ -87,6 +97,9 @@ public function publish($path, $hashByName=false, $level=-1, $forceCopy=false) return $this->_published[$path]; else if (($src = realpath($path)) !== false) { + if ($this->strpos_arr($path, $this->ignoredPaths)) + return parent::publish($path, $hashByName, $level, $forceCopy); + if (is_file($src)) { $dir = $this->hash($hashByName ? basename($src) : dirname($src));