Component automatically compile js and css files (on request)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_ide
src
CHANGELOG.md
LICENSE
README.md
composer.json

README.md

Component automatically compile js and css files (on request)

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist skeeks/cms-assets-auto-compress "*"

or add

"skeeks/cms-assets-auto-compress": "*"

Configuration app


'bootstrap'    => ['assetsAutoCompress'],
'components' =>
[
    'assetsAutoCompress' =>
    [
        'class'         => '\skeeks\cms\assetsAuto\AssetsAutoCompressComponent',
    ],
    'assetsAutoCompressSettings' =>
    [
        'class'         => '\skeeks\cms\assetsAuto\SettingsAssetsAutoCompress',
    ],
    'i18n' => [
        'translations' =>
        [
            'skeeks/assets-auto' => [
                'class'             => 'yii\i18n\PhpMessageSource',
                'basePath'          => '@skeeks/cms/assetsAuto/messages',
                'fileMap' => [
                    'skeeks/assets-auto' => 'main.php',
                ],
            ]
        ]
    ],
],

Links


skeeks!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com