1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 14:02:08 +02:00
tldr/pages/common/vite.md
Andrew Smith 1a541e65c9
vite: add page (#9701)
* vite: add file

* vite: fix typo

remove extra space

* vite: add quotes to names
2023-01-02 20:21:30 +10:00

22 lines
621 B
Markdown

# 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`