enchikiben/yii2-cdn

Yii2 cdn assets

Installs: 26

Dependents: 0

Suggesters: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2016-10-28 18: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'
],