The recommended way to install is through composer.
{
"require": {
"enlitepro/enlite-assetic": "1.*"
}
}
Add EnliteAssetic
to your config/application.config.php
to enable module.
- EnliteUglifyFilter (require npm module uglify-js)
- EnliteCoffeeFilter (require npm module coffee-script)
- EnliteLessFilter (require npm module less)
- EnliteCssoFilter (require npm module csso)
- EnliteUglifycssFilter (require npm module uglifycss)
'admin_js' => array(
'assets' => array(
// ...
),
'filters' => array('?EnliteUglifyFilter'),
),
or
'admin_js' => array(
'assets' => array(
// ...
),
'filters' => array(
'?EnliteCoffeeFilter' => ''
),
),
'service_manager' => array(
'aliases' => array(
'AsseticConfiguration' => 'EnliteAssetic\Configuration'
),
)