Tooling

Vite package scripts

npm scripts can invoke the project-local Vite CLI. Development, build and preview have different purposes.

Formal Syntax & Structure

react syntaxreact
Vite package scripts

Working Example

Example Snippetreact
{  "scripts": {    "dev": "vite",    "build": "vite build",    "preview": "vite preview"  }}
React Reference