Djeg / AsseticMinifierBundle

An assetic minifier in pure PHP for CSS and JS files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AsseticMinifierBundle

Build Status

An assetic minifier in pure PHP for CSS and JS files. This bundle use JSMin and CssMin

Instalation

Add this line into your composer.json :

"davidjegat/assetic-minifier-bundle": "*"

Enable the bundle into your AppKernel.php :

new DavidJegat\AsseticMinifierBundle\DavidJegatAsseticMinifierBundle()

# Use the minifier

Once the bundle is install yo can use the filter minify_js and minify_css for enable the minify.

{% stylesheets 
	'my.css'
	filter="?minify_css"
%}
	<link rel="stylesheet" type="text/css" href="{{asset_url}}">

{% endstylesheets %}

About

An assetic minifier in pure PHP for CSS and JS files.

License:MIT License


Languages

Language:PHP 100.0%