Home  >  Article  >  Development Tools  >  How to introduce bootstrap into vscode

How to introduce bootstrap into vscode

王林
王林Original
2020-04-15 14:36:036497browse

How to introduce bootstrap into vscode

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn