yii2-assets-auto-compress icon indicating copy to clipboard operation
yii2-assets-auto-compress copied to clipboard

Assets folder must be the same as defined in app

Open Eseperio opened this issue 9 years ago • 3 comments

Sometimes asset manager paths are customized in main configuration. Due this extension have fixed routes it will not match the real assets folder.

Eseperio avatar Sep 11 '16 23:09 Eseperio

@Eseperio A possible example of some sort?

skeeks-semenov avatar Sep 12 '16 10:09 skeeks-semenov

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.

Eseperio avatar Sep 13 '16 14:09 Eseperio

Hi @Eseperio I want to rename js-compress folder and css-compress.

Thanks

buiduongthe avatar Apr 17 '20 18:04 buiduongthe