Same as title, i don't want using bootstrap.css and bootstrap.js. I try using:
'assetManager' => [
'bundles' => [
'yii\bootstrap\BootstrapAsset' => [
'css' => [],
],
],
],
It remove bootstrap.css but can't remove bootstrap.js. Somebody can help me?
In
web.php
config file add the following code into components array:To be more comprehensive:
in order to disable Css (bootstrap.css):
in order to disable JS (bootstrap.js):
in order to disable JQuery (jquery.js)
In order to have all of them disabled:
UPDATE
As Soju mentioned in comments, another alternative way would be disabling these files in
AppAsset
class, which is located in./assets/
, then remove the following lines:On AppAsset.php file add this:
For anyone that gets "Invalid Call" errors you have to add Ali's answer to 'components' in $config variable in
app/config/web.php
E.g.