Adding bootstrap to Vue CLI project

后端 未结 7 1156
轻奢々
轻奢々 2021-01-31 09:58

I\'m new to Vue and webpack in general and I\'m having a hard time figuring out how to import things.

I created a fresh Vue project through vue init I added

相关标签:
7条回答
  • 2021-01-31 10:29

    I will try to be as precise as possible

    1.Go the the Vue Cli project run :

    npm i bootstrap jquery popper.js

    2.Go to src/main.js import like:

    import 'bootstrap'; import 'bootstrap/dist/css/bootstrap.min.css';

    0 讨论(0)
提交回复
热议问题