vite build [root]

Build for production

Arguments

NameDescription
rootfolders

Options

NameDescription
--target <target>Transpile target (must be a valid esbuild target)
--outDir <dir>Output directory
--assetsDir <dir>Directory under outDir to place assets in
--assetsInlineLimit <number>Static asset base64 inline threshold in bytes
--ssr [entry]Build specified entry for server-side rendering
--sourcemapOutput sourcemaps for build
--minify [minifier]Enable minification
--manifest [name]Emit build manifest json
--ssrManifest [name]Emit ssr manifest json
--emptyOutDirForce empty outDir when it's outside of root
-w, --watchRebuilds when modules have changed on disk