You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+++ b/docs/guide/api-plugin.md@@ -150,7 +150,7 @@ Vite plugins can also provide hooks that serve Vite-specific purposes. These hoo
### `config`- **Type:** `(config: UserConfig, env: { mode: string, command: string }) => UserConfig | null | void`-- **Kind:** `sync`, `sequential`+- **Kind:** `async`, `sequential`
Modify Vite config before it's resolved. The hook receives the raw user config (CLI options merged with config file) and the current config env which exposes the `mode` and `command` being used. It can return a partial config object that will be deeply merged into existing config, or directly mutate the config (if the default merging cannot achieve the desired result).
The text was updated successfully, but these errors were encountered:
docs: how to disable publicDir (#4074) (d697ef3)
The text was updated successfully, but these errors were encountered: