Skip to content

Commit 605bb97

Browse files
authored
docs: update build CLI defaults (#22261)
1 parent 6b00462 commit 605bb97

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

docs/guide/cli.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,30 +48,30 @@ vite build [root]
4848

4949
#### Options
5050

51-
| Options | |
52-
| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
53-
| `--target <target>` | Transpile target (default: `"modules"`) (`string`) |
54-
| `--outDir <dir>` | Output directory (default: `dist`) (`string`) |
55-
| `--assetsDir <dir>` | Directory under outDir to place assets in (default: `"assets"`) (`string`) |
56-
| `--assetsInlineLimit <number>` | Static asset base64 inline threshold in bytes (default: `4096`) (`number`) |
57-
| `--ssr [entry]` | Build specified entry for server-side rendering (`string`) |
58-
| `--sourcemap [output]` | Output source maps for build (default: `false`) (`boolean \| "inline" \| "hidden"`) |
59-
| `--minify [minifier]` | Enable/disable minification, or specify minifier to use (default: `"esbuild"`) (`boolean \| "terser" \| "esbuild"`) |
60-
| `--manifest [name]` | Emit build manifest json (`boolean \| string`) |
61-
| `--ssrManifest [name]` | Emit ssr manifest json (`boolean \| string`) |
62-
| `--emptyOutDir` | Force empty outDir when it's outside of root (`boolean`) |
63-
| `-w, --watch` | Rebuilds when modules have changed on disk (`boolean`) |
64-
| `-c, --config <file>` | Use specified config file (`string`) |
65-
| `--base <path>` | Public base path (default: `/`) (`string`) |
66-
| `-l, --logLevel <level>` | Info \| warn \| error \| silent (`string`) |
67-
| `--clearScreen` | Allow/disable clear screen when logging (`boolean`) |
68-
| `--configLoader <loader>` | Use `bundle` to bundle the config with Rolldown or `runner` (experimental) to process it on the fly (default: `bundle`) |
69-
| `--profile` | Start built-in Node.js inspector (check [Performance bottlenecks](/guide/troubleshooting#performance-bottlenecks)) |
70-
| `-d, --debug [feat]` | Show debug logs (`string \| boolean`) |
71-
| `-f, --filter <filter>` | Filter debug logs (`string`) |
72-
| `-m, --mode <mode>` | Set env mode (`string`) |
73-
| `-h, --help` | Display available CLI options |
74-
| `--app` | Build all environments, same as `builder: {}` (`boolean`, experimental) |
51+
| Options | |
52+
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
53+
| `--target <target>` | Transpile target (default: `"baseline-widely-available"`) (`string`) |
54+
| `--outDir <dir>` | Output directory (default: `dist`) (`string`) |
55+
| `--assetsDir <dir>` | Directory under outDir to place assets in (default: `"assets"`) (`string`) |
56+
| `--assetsInlineLimit <number>` | Static asset base64 inline threshold in bytes (default: `4096`) (`number`) |
57+
| `--ssr [entry]` | Build specified entry for server-side rendering (`string`) |
58+
| `--sourcemap [output]` | Output source maps for build (default: `false`) (`boolean \| "inline" \| "hidden"`) |
59+
| `--minify [minifier]` | Enable/disable minification, or specify minifier to use (default: `"oxc"`) (`boolean \| "oxc" \| "terser" \| "esbuild"`) |
60+
| `--manifest [name]` | Emit build manifest json (`boolean \| string`) |
61+
| `--ssrManifest [name]` | Emit ssr manifest json (`boolean \| string`) |
62+
| `--emptyOutDir` | Force empty outDir when it's outside of root (`boolean`) |
63+
| `-w, --watch` | Rebuilds when modules have changed on disk (`boolean`) |
64+
| `-c, --config <file>` | Use specified config file (`string`) |
65+
| `--base <path>` | Public base path (default: `/`) (`string`) |
66+
| `-l, --logLevel <level>` | Info \| warn \| error \| silent (`string`) |
67+
| `--clearScreen` | Allow/disable clear screen when logging (`boolean`) |
68+
| `--configLoader <loader>` | Use `bundle` to bundle the config with Rolldown or `runner` (experimental) to process it on the fly (default: `bundle`) |
69+
| `--profile` | Start built-in Node.js inspector (check [Performance bottlenecks](/guide/troubleshooting#performance-bottlenecks)) |
70+
| `-d, --debug [feat]` | Show debug logs (`string \| boolean`) |
71+
| `-f, --filter <filter>` | Filter debug logs (`string`) |
72+
| `-m, --mode <mode>` | Set env mode (`string`) |
73+
| `-h, --help` | Display available CLI options |
74+
| `--app` | Build all environments, same as `builder: {}` (`boolean`, experimental) |
7575

7676
## Others
7777

packages/vite/src/node/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ cli
329329
)
330330
.option(
331331
'--minify [minifier]',
332-
`[boolean | "terser" | "esbuild"] enable/disable minification, ` +
333-
`or specify minifier to use (default: esbuild)`,
332+
`[boolean | "oxc" | "terser" | "esbuild"] enable/disable minification, ` +
333+
`or specify minifier to use (default: oxc)`,
334334
)
335335
.option('--manifest [name]', `[boolean | string] emit build manifest json`)
336336
.option('--ssrManifest [name]', `[boolean | string] emit ssr manifest json`)

0 commit comments

Comments
 (0)