[Vuejs]-Import JS files from a Bootstrap template into a Vue3 project

0👍

Vue projects use a dependency manager such as NPM or Yarn that would be used to install Bootstrap JS as a module…

npm install --save bootstrap
npm install --save @popperjs/core

Then you can use Bootstrap anywhere in your Vue project…

import "bootstrap";

or import individual components…

import { Popover, Modal } from bootstrap;

Also see: Using Bootstrap 5 with Vue 3

Leave a comment