Jquery is compiled to my minified js file even I disable asset bundle
I set my web and console confg to
'assetManager' => [
'bundles' => [
'yii\web\JqueryAsset' => false
]
],
I went to yii\console\controllers\AssetController to debug some vars
public function actionCompress($configFile, $bundleFile)
{
$this->loadConfiguration($configFile);
$bundles = $this->loadBundles($this->bundles);
$targets = $this->loadTargets($this->targets, $bundles);
var_dump(\Yii::$app->assetManager->bundles);
var_dump($bundles);
exit;
And found that my debug var_dump says:
//var_dump(\Yii::$app->assetManager->bundles);
//Bundles are ok inside my config. The same value inside web config works well if compiled bundles are off
array(1) {
["yii\web\JqueryAsset"]=>
bool(false)
}
//loadBundles ignores my config and compiles jquery to the minified js file. Web and console configs are the same
array(7) {
["yii\web\JqueryAsset"]=>
object(yii\web\JqueryAsset)#29 (9) {
["sourcePath"]=>
string(73) "/home/billy/Projects/sites/fileprovider/frontend/vendor/bower/jquery/dist"
["js"]=>
array(1) {
[0]=>
string(9) "jquery.js"
}
["basePath"]=>
string(68) "/home/billy/Projects/sites/fileprovider/frontend/web/assets/806f628d"
["baseUrl"]=>
string(23) "/assets/assets/806f628d"
["depends"]=>
array(0) {
}
["css"]=>
array(0) {
}
["jsOptions"]=>
array(0) {
}
["cssOptions"]=>
array(0) {
}
["publishOptions"]=>
array(0) {
}
}
What am I doing wrong with console asset ?