Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Eseperio opened this issue Sep 11, 2016 · 3 comments
Open

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

Eseperio opened this issue Sep 11, 2016 · 3 comments

Comments

@Eseperio
Copy link

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
Copy link
Owner

@Eseperio A possible example of some sort?

@Eseperio
Copy link
Author

Eseperio commented Sep 13, 2016

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
Copy link

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

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants