Skip to content

Commit b187d63

Browse files
authored
docs: mention native config loader in CLI options (#22348)
1 parent 92ae9fd commit b187d63

1 file changed

Lines changed: 52 additions & 52 deletions

File tree

guide/cli.md

Lines changed: 52 additions & 52 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: `"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) |
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, or `native` (experimental) to load using the native runtime (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

@@ -89,18 +89,18 @@ vite optimize [root]
8989

9090
#### Options
9191

92-
| Options | |
93-
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
94-
| `--force` | Force the optimizer to ignore the cache and re-bundle (`boolean`) |
95-
| `-c, --config <file>` | Use specified config file (`string`) |
96-
| `--base <path>` | Public base path (default: `/`) (`string`) |
97-
| `-l, --logLevel <level>` | Info \| warn \| error \| silent (`string`) |
98-
| `--clearScreen` | Allow/disable clear screen when logging (`boolean`) |
99-
| `--configLoader <loader>` | Use `bundle` to bundle the config with Rolldown or `runner` (experimental) to process it on the fly (default: `bundle`) |
100-
| `-d, --debug [feat]` | Show debug logs (`string \| boolean`) |
101-
| `-f, --filter <filter>` | Filter debug logs (`string`) |
102-
| `-m, --mode <mode>` | Set env mode (`string`) |
103-
| `-h, --help` | Display available CLI options |
92+
| Options | |
93+
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
94+
| `--force` | Force the optimizer to ignore the cache and re-bundle (`boolean`) |
95+
| `-c, --config <file>` | Use specified config file (`string`) |
96+
| `--base <path>` | Public base path (default: `/`) (`string`) |
97+
| `-l, --logLevel <level>` | Info \| warn \| error \| silent (`string`) |
98+
| `--clearScreen` | Allow/disable clear screen when logging (`boolean`) |
99+
| `--configLoader <loader>` | Use `bundle` to bundle the config with Rolldown, or `runner` (experimental) to process it on the fly, or `native` (experimental) to load using the native runtime (default: `bundle`) |
100+
| `-d, --debug [feat]` | Show debug logs (`string \| boolean`) |
101+
| `-f, --filter <filter>` | Filter debug logs (`string`) |
102+
| `-m, --mode <mode>` | Set env mode (`string`) |
103+
| `-h, --help` | Display available CLI options |
104104

105105
### `vite preview`
106106

@@ -116,19 +116,19 @@ vite preview [root]
116116

117117
#### Options
118118

119-
| Options | |
120-
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
121-
| `--host [host]` | Specify hostname (`string`) |
122-
| `--port <port>` | Specify port (`number`) |
123-
| `--strictPort` | Exit if specified port is already in use (`boolean`) |
124-
| `--open [path]` | Open browser on startup (`boolean \| string`) |
125-
| `--outDir <dir>` | Output directory (default: `dist`)(`string`) |
126-
| `-c, --config <file>` | Use specified config file (`string`) |
127-
| `--base <path>` | Public base path (default: `/`) (`string`) |
128-
| `-l, --logLevel <level>` | Info \| warn \| error \| silent (`string`) |
129-
| `--clearScreen` | Allow/disable clear screen when logging (`boolean`) |
130-
| `--configLoader <loader>` | Use `bundle` to bundle the config with Rolldown or `runner` (experimental) to process it on the fly (default: `bundle`) |
131-
| `-d, --debug [feat]` | Show debug logs (`string \| boolean`) |
132-
| `-f, --filter <filter>` | Filter debug logs (`string`) |
133-
| `-m, --mode <mode>` | Set env mode (`string`) |
134-
| `-h, --help` | Display available CLI options |
119+
| Options | |
120+
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
121+
| `--host [host]` | Specify hostname (`string`) |
122+
| `--port <port>` | Specify port (`number`) |
123+
| `--strictPort` | Exit if specified port is already in use (`boolean`) |
124+
| `--open [path]` | Open browser on startup (`boolean \| string`) |
125+
| `--outDir <dir>` | Output directory (default: `dist`)(`string`) |
126+
| `-c, --config <file>` | Use specified config file (`string`) |
127+
| `--base <path>` | Public base path (default: `/`) (`string`) |
128+
| `-l, --logLevel <level>` | Info \| warn \| error \| silent (`string`) |
129+
| `--clearScreen` | Allow/disable clear screen when logging (`boolean`) |
130+
| `--configLoader <loader>` | Use `bundle` to bundle the config with Rolldown, or `runner` (experimental) to process it on the fly, or `native` (experimental) to load using the native runtime (default: `bundle`) |
131+
| `-d, --debug [feat]` | Show debug logs (`string \| boolean`) |
132+
| `-f, --filter <filter>` | Filter debug logs (`string`) |
133+
| `-m, --mode <mode>` | Set env mode (`string`) |
134+
| `-h, --help` | Display available CLI options |

0 commit comments

Comments
 (0)