Skip to content

Build

vp build builds Vite applications for production.

Overview

vp build runs the standard Vite production build through Vite+. Since it is directly based on Vite, the build pipeline and configuration model are the same as Vite. For more information about how Vite production builds work, see the Vite guide. Note that Vite+ uses Vite 8 and Rolldown for builds.

INFO

vp build always runs the built-in Vite production build. If your project also has a build script in package.json, run vp run build when you want to run that script instead.

Usage

bash
vp build
vp build --watch
vp build --sourcemap

Configuration

Use standard Vite configuration in vite.config.ts. For the full configuration reference, see the Vite config docs.

Use it for:

Preview

Use vp preview to serve the production build locally after vp build.

bash
vp build
vp preview