yii2-assets-auto-compress
yii2-assets-auto-compress copied to clipboard
Assets folder must be the same as defined in app
Sometimes asset manager paths are customized in main configuration. Due this extension have fixed routes it will not match the real assets folder.
@Eseperio A possible example of some sort?
In the class the assets folder is defined as this.
$publicUrl = \Yii::getAlias('@web/assets/js-compress/' . $fileName);
But in main yii app configuration you can change assets path by adding this
'assetManager' => [ 'basePath' => '@webroot/public_assets', 'baseUrl' => '@web/public_assets' ],
Then the first route provided @web/assets will not exist, and the component will not work.
Hi @Eseperio I want to rename js-compress folder and css-compress.
Thanks