Vue components using Bootstrap 5 for use across applications
- Update version number in
package.json
- Run
npm run build
and make sure there are no errors - Run
npm publish --access=public
to publish to NPM
-
Set current directory to Vue project
-
Run
npm i @118group/vuecomponents
-
In
main.js
-... import vuecomponents from '@118group/vuecomponents' ... app .use(vuecomponents) .mount('#app');
-
In
App.vue
-... <style> @import '@118group/vuecomponents/dist/library.mjs.css'; ...