How to use bootstrap in vue-cli project
Jun 02, 2018 pm 02:26 PMThis time I will show you how to use bootstrap in the vue-cli project. What are the precautions for using bootstrap in the vue-cli project. The following is a practical case. Let’s take a look.
It is very convenient to add bootstrap to an html page. You just need to pass the css and js files through the Link and Script tags.
So how to add it to a front-end project generated with vue-vli? Because the framework is different, it takes some getting used to.
InstallationPlug-in
1 2 3 |
|
Configuration webpack.base.conf.js
1 2 |
|
1 2 3 4 5 6 7 8 9 10 |
|
Add
1 2 |
|
Test jquery to main.js
1 2 3 4 5 6 7 8 9 |
|
Testing bootstrap
1 2 3 4 5 6 7 8 9 |
|
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!
Recommended reading:
How to use vue.js and element-ui to implement the menu tree structure
How to use vue Inner .sync modifier
The above is the detailed content of How to use bootstrap in vue-cli project. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What software is crystaldiskmark? -How to use crystaldiskmark?

How to download foobar2000? -How to use foobar2000

How to use Xiaoai Speaker How to connect Xiaoai Speaker to mobile phone

Simple guide to pip mirror source: easily master how to use it
