Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use builder in build #1650

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion guide/api-environment-frameworks.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export function createHandler(input) {

CLI において、`vite build` と `vite build --ssr` を呼び出すと、後方互換性のためにクライアントのみの環境と ssr のみの環境がビルドされます。

`builder.entireApp` が `true` の場合(または `vite build --app` を呼び出した場合)、`vite build` はアプリ全体のビルドを行います。これは将来のメジャーバージョンではデフォルトになる予定です。`ViteBuilder` インスタンス(ビルド時の `ViteDevServer` に相当)が作成され、プロダクション環境用に設定されたすべての環境がビルドされます。デフォルトでは、環境のビルドは `environments` レコードの順番に従って直列に実行されます。フレームワークやユーザーは環境を構築する方法を設定できます:
`builder` が `undefined` でない場合(または `vite build --app` を呼び出した場合)、`vite build` はアプリ全体のビルドを行います。これは将来のメジャーバージョンではデフォルトになる予定です。`ViteBuilder` インスタンス(ビルド時の `ViteDevServer` に相当)が作成され、プロダクション環境用に設定されたすべての環境がビルドされます。デフォルトでは、環境のビルドは `environments` レコードの順番に従って直列に実行されます。フレームワークやユーザーは環境を構築する方法を設定できます:

```js
export default {
Expand Down
2 changes: 1 addition & 1 deletion guide/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ vite build [root]
| `-f, --filter <filter>` | デバッグログをフィルタリングする(`string`) |
| `-m, --mode <mode>` | env モードを設定する(`string`) |
| `-h, --help` | 利用可能な CLI オプションを表示する |
| `--app` | すべての環境をビルドする。`builder.entireApp` と同じ。(`boolean`、実験的機能) |
| `--app` | すべての環境をビルドする。`builder: {}` と同じ。(`boolean`、実験的機能) |

## その他

Expand Down