@@ -16,14 +16,14 @@ vitepress dev [root]
16
16
17
17
### Options
18
18
19
- | Option | Description |
20
- | - | - |
21
- | ` --open [path] ` | Open browser on startup (` boolean \| string ` ) |
22
- | ` --port <port> ` | Specify port ( ` number ` ) |
23
- | ` --base <path> ` | Public base path (default: ` / ` ) (` string ` ) |
24
- | ` --cors ` | Enable CORS |
25
- | ` --strictPort ` | Exit if specified port is already in use (` boolean ` ) |
26
- | ` --force ` | Force the optimizer to ignore the cache and re-bundle (` boolean ` ) |
19
+ | Option | Description |
20
+ | --------------- | ----------------------------------------------------------------- |
21
+ | ` --open [path] ` | Open browser on startup (` boolean \| string ` ) |
22
+ | ` --port <port> ` | Specify port ( ` number ` ) |
23
+ | ` --base <path> ` | Public base path (default: ` / ` ) (` string ` ) |
24
+ | ` --cors ` | Enable CORS |
25
+ | ` --strictPort ` | Exit if specified port is already in use (` boolean ` ) |
26
+ | ` --force ` | Force the optimizer to ignore the cache and re-bundle (` boolean ` ) |
27
27
28
28
## ` vitepress build `
29
29
@@ -37,14 +37,14 @@ vitepress build [root]
37
37
38
38
### Options
39
39
40
- | Option | Description |
41
- | - | - |
42
- | ` --mpa ` (experimental) | Build in [ MPA mode] ( ../guide/mpa-mode ) without client-side hydration (` boolean ` ) |
43
- | ` --base <path> ` | Public base path (default: ` / ` ) (` string ` ) |
44
- | ` --target <target> ` | Transpile target (default: ` "modules" ` ) (` string ` ) |
45
- | ` --outDir <dir> ` | Output directory (default: ` .vitepress/dist ` ) (` string ` ) |
40
+ | Option | Description |
41
+ | ------------------------------ | ------------------------------------------------------------------------------------------------------------------- |
42
+ | ` --mpa ` (experimental) | Build in [ MPA mode] ( ../guide/mpa-mode ) without client-side hydration (` boolean ` ) |
43
+ | ` --base <path> ` | Public base path (default: ` / ` ) (` string ` ) |
44
+ | ` --target <target> ` | Transpile target (default: ` "modules" ` ) (` string ` ) |
45
+ | ` --outDir <dir> ` | Output directory relative to ** cwd ** (default: ` <root>/ .vitepress/dist` ) (` string ` ) |
46
46
| ` --minify [minifier] ` | Enable/disable minification, or specify minifier to use (default: ` "esbuild" ` ) (` boolean \| "terser" \| "esbuild" ` ) |
47
- | ` --assetsInlineLimit <number> ` | Static asset base64 inline threshold in bytes (default: ` 4096 ` ) (` number ` ) |
47
+ | ` --assetsInlineLimit <number> ` | Static asset base64 inline threshold in bytes (default: ` 4096 ` ) (` number ` ) |
48
48
49
49
## ` vitepress preview `
50
50
@@ -58,10 +58,10 @@ vitepress preview [root]
58
58
59
59
### Options
60
60
61
- | Option | Description |
62
- | - | - |
63
- | ` --base <path> ` | Public base path (default: ` / ` ) (` string ` ) |
64
- | ` --port <port> ` | Specify port ( ` number ` ) |
61
+ | Option | Description |
62
+ | --------------- | ------------------------------------------ |
63
+ | ` --base <path> ` | Public base path (default: ` / ` ) (` string ` ) |
64
+ | ` --port <port> ` | Specify port ( ` number ` ) |
65
65
66
66
## ` vitepress init `
67
67
0 commit comments