Skip to content

Commit c176325

Browse files
authored
docs: clarify where it applies for each config options (#1625)
resolve #1622 vitejs/vite@eec021d の反映です。
1 parent c53287b commit c176325

File tree

7 files changed

+13
-1
lines changed

7 files changed

+13
-1
lines changed

config/build-options.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ビルドオプション
22

3+
特に記載がない限り、このセクションのオプションはビルドにのみ適用されます。
4+
35
## build.target
46

57
- **型:** `string | string[]`

config/dep-optimization-options.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
- **関連:** [依存関係の事前バンドル](/guide/dep-pre-bundling)
44

5+
特に記載がない限り、このセクションのオプションは、開発時にだけ使用される依存関係の最適化にのみ適用されます。
6+
57
## optimizeDeps.entries
68

79
- **型:** `string | string[]`

config/preview-options.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# プレビューのオプション
22

3+
特に記載がない限り、このセクションのオプションはプレビューにのみ適用されます。
4+
35
## preview.host
46

57
- **型:** `string | boolean`

config/server-options.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# サーバーオプション
22

3+
特に記載がない限り、このセクションのオプションは開発にのみ適用されます。
4+
35
## server.host
46

57
- **型:** `string | boolean`

config/shared-options.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# 共通オプション
22

3+
特に記載がない限り、このセクションのオプションは開発、ビルド、プレビューのすべてに適用されます。
4+
35
## root
46

57
- **型:** `string`

config/ssr-options.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# SSR オプション
22

3+
特に記載がない限り、このセクションのオプションは開発とビルドの両方に適用されます。
4+
35
## ssr.external
46

57
- **型:** `string[] | true`

config/worker-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ワーカーのオプション
22

3-
Web Worker に関連するオプション
3+
特に記載がない限り、このセクションのオプションは開発、ビルド、プレビューのすべてに適用されます
44

55
## worker.format
66

0 commit comments

Comments
 (0)