DEV Community

Discussion on: Creating a Vue.js component library: Part VI - Publishing to npm

Collapse
 
sandeeprao69 profile image
Sandeep • Edited

Hi Siegerts,
Thank for this awesome series.

I am trying to build a plugin which uses bootstrap-vue.
In bootstrap-vue you need to import your css files and also register the components like

import { BootstrapVue, IconsPlugin } from 'bootstrap-vue';

// Import Bootstrap an BootstrapVue CSS files (order is important)
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap-vue/dist/bootstrap-vue.css';

Vue.use(BootstrapVue);
Vue.use(IconsPlugin);

I am unable to make it work. Style doesn't apply