Practical uses
- Run fast frontend development servers
- Bundle production web applications
- Build reusable JavaScript libraries
- Prototype framework and vanilla projects
A fast development server and build tool for front-end projects.
Vite (French for 'fast') is a build tool that serves your code to the browser as native ES modules during development, so the dev server starts quickly and changes appear almost immediately. It was created by Evan You, the author of Vue, and is widely used for Vue, React, Svelte and plain JavaScript projects.
You need Node.js installed. Running `npm create vite` sets up a new project with Vite included, or you can add Vite to an existing project with npm. You do not need this to follow the lessons: the examples run in your browser.
# Create a new project:
npm create vite@latest my-project
# Choose: framework (React/Vue/Svelte/Vanilla) and variant (JS/TS)
cd my-project
npm install
npm run devLearn the basics first, then pick up these tools when a project needs them.