AsseticMinifierBundle
, (*1)
An assetic minifier in pure PHP for CSS and JS files. This bundle use JSMin and CssMin, (*2)
Instalation
Add this line into your composer.json
:, (*3)
"davidjegat/assetic-minifier-bundle": "*"
Enable the bundle into your AppKernel.php
:, (*4)
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., (*5)
```html+jinja
{% stylesheets
'my.css'
filter="?minify_css"
%}
, (*6)
{% endstylesheets %}
```, (*7)