enlitepro / enlite-assetic
The module add assetic cache, some filters (coffee, csso, less, ngmin, uglify, uglifycc), support @asset from other collections, put current version to static files
Installs: 1 625
Dependents: 1
Suggesters: 1
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Language:CSS
Requires
- kriswallsmith/assetic: >=1.0,<1.2
- widmogrod/zf2-assetic-module: ~1.0
- zendframework/zend-modulemanager: ~2.2
- zendframework/zend-servicemanager: ~2.2
Requires (Dev)
README
INSTALL
The recommended way to install is through composer.
{ "require": { "enlitepro/enlite-assetic": "1.*" } }
USAGE
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' => '' ), ),
Capistrano revision inject
'service_manager' => array( 'aliases' => array( 'AsseticConfiguration' => 'EnliteAssetic\Configuration' ), )