How to configure Assets?

Connect the styles in the assets but there was no problem but when connecting styles of add-ons and extensions connect supremely, and I have what would be the opposite. Is it possible that the styles in asseto connected before connecting all styles of extensions.
June 5th 19 at 21:31
1 answer
June 5th 19 at 21:33
I do not understand, but if there are assets styles from which they are dependent, they must be registered in the 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',
];
}

Describes the styles, namely 'css/site.css' will be connected after the styles described in the yii\bootstrap\BootstrapAsset and yii\web\YiiAsset
This is public $depends in AssetBundle
connect kartik-v fileinput his styles are connected above. - vergie.Jerde commented on June 5th 19 at 21:36
Oh I have not written correctly it is necessary that my styles were higher. - vergie.Jerde commented on June 5th 19 at 21:39
@Sergalas
Oh I have not written correctly it is necessary that my styles were higher.

then, on the contrary, remove from depends all
You are trying to cram everything in 1 file? Not worth it. - Henderson_Beat commented on June 5th 19 at 21:42

Find more questions by tags Yii