[Vuejs]-VueJS Import only used styles from bootstrap

0πŸ‘

βœ…

edited

Bootstrap JS folder is located in the directory like this. You will use @import statement to use it on your scss file.

bootstrap/
└── dist/
    β”œβ”€β”€ scss/
    └── js/
        β”œβ”€β”€ bootstrap.bundle.js
        β”œβ”€β”€ bootstrap.bundle.js.map
        β”œβ”€β”€ bootstrap.bundle.min.js
        β”œβ”€β”€ bootstrap.bundle.min.js.map
        β”œβ”€β”€ bootstrap.js
        β”œβ”€β”€ bootstrap.js.map
        β”œβ”€β”€ bootstrap.min.js
        └── bootstrap.min.js.map

Also, make sure you install jQuery and Popper too as these are peer dependencies.

npm install --save jquery popper.js.

Leave a comment