Adding bootstrap to Vue CLI project

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

    With Vue CLI v3.x/v4.x, you can also use the @techiediaries/vue-cli-plugin-bootstrap to quickly add the latest Bootstrap 4 version in your Vue project without manually adding any files or settings.

    Head over to a new command-line interface, navigate to your project's folder and run the following command:

    $ vue add @techiediaries/bootstrap
    

    The plugin will take care of adding any configuration options and install the dependencies into your project so you can start using Bootstrap classes right away without spending time figuring out what settings or dependencies you need to add.

提交回复
热议问题