davidjegat / assetic-minifier-bundle
A complete minifier in pure PHP for your assetic. Using Douglas Crockford JSMin and Tubal Martin CssMin
Installs: 181
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 1
Forks: 2
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.3.2
- kriswallsmith/assetic: 1.*
- symfony/framework-bundle: >=2.1,<2.3-dev
This package is not auto-updated.
Last update: 2024-12-21 13:46:44 UTC
README
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 %}