O
O
Oleg2018-09-28 23:31:01
Yii
Oleg, 2018-09-28 23:31:01

Yii2 recursive minification of CSS files. Reasons and how to fix?

Good afternoon!
There is a plug-in set:

class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';

    public $css = [
        'css/style.css',
    ];
    public $js = [];
    
  public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapPluginAsset',
    ];
}

Register it in the template: assetManager settings:
AppAsset::register($this);
'assetManager' => [
            'appendTimestamp' => true,
],

The page renders without problems - all resources are connected correctly:
5bae8f055e391801239320.png
BUT ... if you look in the folder
5bae8d9c94275231047340.png, you can see a bunch of garbage. Where do these endless *.min.css come from? how to get rid of them? ... ran without IDE and any minifiers, only Yii2 on OpenServer

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question