vite/build

Build for Production

Build the project for production

vite
build
production

Command

npm run build

Explanation

Builds the project for production with optimizations like minification and tree-shaking.

Examples

Build for production

npm run build

Build for staging environment

npm run build -- --mode staging

Build to custom output directory

npm run build -- --outDir dist