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);[...]