enchikiben/yii2-cdn

Yii2 cdn assets

Installs: 27

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2016-10-28 18:17 UTC

This package is auto-updated.

Last update: 2024-02-26 04:51:17 UTC


README

Installation

The preferred way to install this extension is through composer.

php composer.phar require --prefer-dist "enchikiben/yii2-cdn" "*"

or

"enchikiben/yii2-cdn" : "*"

Configure

'components' => [
    'cdn' => [
        'class' => 'enchikiben\cdn\CDNComponent',
        'domains' => [
            '//static.example.com',
            '//static2.example.com',
            '//static2.example.com'
        ]
    ]
],

and

'bootstrap' => [
    'cdn'
],