1. Create the project and initialize the project
2. Check npm, vue, node
3. cd to the current directory and execute the following command :
npm install bootstrap --save --save-exact // --save是做为依赖库存到package.json中,后面的命令会精确版本号(就是版本前面没有尖括号),在项目开发中还是很需要的,这步比较重要
4. Introduce it into main.js
import ‘bootstrap/dist/css/bootstrap.min.css’
5. Carry out layout in app.vue, then write the general style and test its buttons. Check whether the introduction is successful.
Recommended tutorial: vscode tutorial
The above is the detailed content of How to introduce bootstrap into vscode. For more information, please follow other related articles on the PHP Chinese website!