Adding bootstrap to Vue CLI project

后端 未结 7 1157
轻奢々
轻奢々 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:08

    use Bootstrap CDN and include it as a in your index.html

    
    

    I never used Bootsrap with Vue.js, as I'm not a fan. But when I used Bulma's sass, first I did npm install for Bulma. Then I created a folder in src/assets/sass and inside it created a main.scss and inside it I imported bulma by @import '~bulma/bulma';

提交回复
热议问题