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: 447

Dependents: 1

Watchers: 1

Open Issues: 1

Language: CSS

v1.1.1 2015-04-10 14:36 UTC

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'
        ),
    )