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

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: 12 910 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