Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html Minification Not working. #206

Open
kodeine opened this issue Sep 2, 2014 · 0 comments
Open

Html Minification Not working. #206

kodeine opened this issue Sep 2, 2014 · 0 comments

Comments

@kodeine
Copy link

kodeine commented Sep 2, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant