CodeSleeve / asset-pipeline

This Laravel 4 package provides a very simple and easy to use asset pipeline. It was heavily inspired by the Rails asset pipeline. We make use of the wonderful Assetic package to help with pre-compliation!
http://www.codesleeve.com
MIT License
491 stars 53 forks source link

Html Minification Not working. #206

Open kodeine opened 9 years ago

kodeine commented 9 years ago

Html minifcation does not work. I tried following.

Event::listen('asset.pipeline.boot', function($pipeline) {

$config = $pipeline->getConfig();
$config['paths'][] = 'app/assets/views';
$config['mimes']['views'][] = '.tpl';
$config['filters']['.tpl'] = array(
    new Codesleeve\AssetPipeline\Filters\MinifyHtml,
    //new Codesleeve\AssetPipeline\Filters\EnvironmentFilter(new Codesleeve\AssetPipeline\Filters\MinifyHtml, App::environment()),
);
//dd($config);
$pipeline->setConfig($config);

});

I uploaded tpl in app/assets/views/test.tpl looks like minifyHtml runs __construct() only. not filterDump