vue 项目创建命令
This commit is contained in:
@ -12,4 +12,6 @@
|
|||||||
- default.conf 默认配置文件
|
- default.conf 默认配置文件
|
||||||
- mime.types MIME Types 配置
|
- mime.types MIME Types 配置
|
||||||
- [cli.md](./nginx/cli.md) Nginx 命令
|
- [cli.md](./nginx/cli.md) Nginx 命令
|
||||||
|
- vue
|
||||||
|
- [cli.md](./vue/cli.md) Vue CLI 命令
|
||||||
- README.md
|
- README.md
|
||||||
|
47
vue/cli.md
Normal file
47
vue/cli.md
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<h1>
|
||||||
|
Vite
|
||||||
|
<h3>构建项目</h3>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
### 创建项目
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm create vite@latest
|
||||||
|
# OR
|
||||||
|
yarn create vite
|
||||||
|
```
|
||||||
|
|
||||||
|
### 使用模板创建项目
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# npm 6.x
|
||||||
|
npm create vite@latest my-vue-app --template vue
|
||||||
|
|
||||||
|
# npm 7+, extra double-dash is needed:
|
||||||
|
npm create vite@latest my-vue-app -- --template vue
|
||||||
|
|
||||||
|
# yarn
|
||||||
|
yarn create vite my-vue-app --template vue
|
||||||
|
|
||||||
|
# pnpm
|
||||||
|
pnpm create vite my-vue-app --template vue
|
||||||
|
```
|
||||||
|
|
||||||
|
<h1>
|
||||||
|
Vue CLI
|
||||||
|
<h3>构建项目</h3>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
### 安装
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install -g @vue/cli
|
||||||
|
# OR
|
||||||
|
yarn global add @vue/cli
|
||||||
|
```
|
||||||
|
|
||||||
|
### 创建项目
|
||||||
|
|
||||||
|
```bash
|
||||||
|
vue create hello-world
|
||||||
|
```
|
Reference in New Issue
Block a user