skeeks-semenov / yii2-assets-auto-compress

Automatic compilation of js + css + html
https://skeeks.com/
BSD 3-Clause "New" or "Revised" License
157 stars 43 forks source link

Assets folder must be the same as defined in app #18

Open Eseperio opened 8 years ago

Eseperio commented 8 years ago

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

skeeks-semenov commented 8 years ago

@Eseperio A possible example of some sort?

Eseperio commented 8 years ago

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.

buiduongthe commented 4 years ago

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

Thanks