Introducció
Vite (French word for "quick", pronounced /vit/
, like "veet") is a build tool consists of two major parts:
-
A dev server that provides rich feature enhancements over native ES modules, for example extremely fast Hot Module Replacement (HMR).
-
A build command that bundles your code with Rollup, pre-configured to output highly optimized static assets for production.
Scaffolding Your First Vite Project
> bun create vite
Then follow the prompts!
You can also directly specify the project name and the template you want to use via additional command line options.
For example, to scaffold a Vite + React project, run:
...
index.html
and Project Root
...