Create a constant named YII_ASSET_CDN
.
#20467
Closed
terabytesoftw
started this conversation in
Yii 22
Replies: 1 comment 3 replies
-
How would you configure CDN? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, in the development branch, assets can be installed from:
The idea here is to create the
YII_ASSET_CDN
constant with a default value offalse
. When set totrue
, we could configure the defined assets to use aCDN
. IfYII_DEBUG
istrue
, the assets would be used compression; iffalse
, the assets would be used without compression.This was a suggestion by @rob006 for asset management, and i think it’s a good idea to have the option to not depend on an external tool.
cc @schmunk42
Beta Was this translation helpful? Give feedback.
All reactions