Answer the question
In order to leave comments, you need to log in
How to properly set up Assets?
I connect styles in assets but there was no problem, but when connecting, the styles of additions and extensions are connected higher, but I need it the other way around. Is it possible that the styles in the assets are connected before the styles of all extensions are connected.
Answer the question
In order to leave comments, you need to log in
I didn’t understand anything, but if assets have styles on which they are dependent, they should be written in dependencies.
Example, standard AppAsset:
class AppAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
'css/site.css',
];
public $js = [
];
public $depends = [
'yii\web\YiiAsset',
'yii\bootstrap\BootstrapAsset',
];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question