vite: add page (#9701)

* vite: add file

* vite: fix typo

remove extra space

* vite: add quotes to names
pull/3/head
Andrew Smith 2023-01-02 05:21:30 -05:00 committed by GitHub
parent ce223b4592
commit 1a541e65c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

22
pages/common/vite.md Normal file
View File

@ -0,0 +1,22 @@
# Vite
> Create a Vite project.
> Used to build JavaScript projects.
> Available templates: vanilla, vanilla-ts, vue, vue-ts, react, react-ts, react-swc, react-swc-ts, preact, preact-ts, lit, lit-ts, svelte, svelte-ts.
> More information: <https://vitejs.dev/guide>.
- Setup using `npm` 6.x:
`npm create vite@latest my-react-app --template react-ts`
- Setup using `npm` 7+, extra double-dash is needed:
`npm create vite@latest my-react-app -- --template react-ts`
- Setup using `yarn`:
`yarn create vite my-react-app --template react-ts`
- Setup using `pnpm`:
`pnpm create vite my-react-app --template react-ts`