Difference between #4 and #5 of
`forceCopy` per Asset Bundle

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);
[...]
1 0
1 follower
Viewed: 13 604 times
Version: 2.0
Category: How-tos
Written by: schmunk
Last updated by: schmunk
Created on: Jan 29, 2015
Last updated: 9 years ago
Update Article

Revisions

View all history