docs: update vite init command (#4176) [ci skip]
This commit is contained in:
parent
ac74e1dd33
commit
1015700e1e
@ -9,11 +9,12 @@ This is the repository for Vue 3.0.
|
|||||||
- Scaffold via [Vite](https://github.com/vitejs/vite):
|
- Scaffold via [Vite](https://github.com/vitejs/vite):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# npm
|
# npm 6.x
|
||||||
npm init @vitejs/app
|
npm init vite@latest my-vue-app --template vue
|
||||||
|
# npm 7+, extra double-dash is needed:
|
||||||
|
npm init vite@latest my-vue-app -- --template vue
|
||||||
# yarn
|
# yarn
|
||||||
yarn create @vitejs/app
|
yarn create vite my-vue-app --template vue
|
||||||
# select vue template
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- Scaffold via [vue-cli](https://cli.vuejs.org/):
|
- Scaffold via [vue-cli](https://cli.vuejs.org/):
|
||||||
|
Loading…
Reference in New Issue
Block a user