Revision #5 has been created by schmunk on Feb 18, 2015, 2:26:34 AM with the memo:
formatting
« previous (#4)
Changes
Title
unchanged
`forceCopy` per Asset Bundle
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
assets, AssetManager
Content
changed
[...]
public function init(){
parent::init();
// /!\ CSS/LESS development only setting /!\
// Touch the asset folder with the highest mtime of all contained files
// This will create a new folder in web/assets for every change and request
// made to the app assets
.
if (YII_ENV_DEV) {
$files = FileHelper::findFiles(\Yii::getAlias($this->sourcePath));
$mtimes = [];
foreach ($files AS $file) {
$mtimes[] = filemtime($file);[...]