I recently switch to Vue-bootstrap. I wrote the following code:
<div>
<div class="col-sm-3">
<b-card no-body class="mb-1" border-variant="primary">
<b-card-header header-tag="header" class="p-1" role="tab">
<b-button block disabled href="#" v-b-toggle.accordion-1 variant="info">Search:</b-button>
</b-card-header>
<b-collapse id="accordion-1" visible accordion="my-accordion" role="tabpanel">
<b-card-body>
Why it works?
</b-card-body>
</b-collapse>
</b-card>
</div>
</div>
If I insert it into the live of the I get:
It contains a border. If I run locally the same code (except the text) I get:
Why does this happen?
In my webpack I compile properly:
{
// compile css files (basically, bootstrap)
test: /\.css$/,
use: ['style-loader', 'vue-style-loader', 'css-loader']
}
Also in both main.js and App.vue I have:
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap-vue/dist/bootstrap-vue.css';