vite build [root]
Build for production
Arguments
Name | Description |
---|---|
root | folders |
Options
Name | Description |
---|---|
--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 |
--sourcemap | Output sourcemaps for build |
--minify [minifier] | Enable minification |
--manifest [name] | Emit build manifest json |
--ssrManifest [name] | Emit ssr manifest json |
--emptyOutDir | Force empty outDir when it's outside of root |
-w, --watch | Rebuilds when modules have changed on disk |