Yii2 disable vendor module asset
1 answer
Yes it is possible and even mentioned in the official docs here . One way to do this is through the application config:
return [
// ...
'components' => [
'assetManager' => [
'bundles' => [
'mdm\admin\AdminAsset' => false,
],
],
],
];
Another way is at runtime via a component:
\Yii::$app->assetManager->bundles['mdm\admin\AdminAsset'] = false;
+1
source to share