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

[SYNC] docs: how to disable publicDir (#4074) #18

Closed
github-actions bot opened this issue Jul 3, 2021 · 0 comments · Fixed by #27
Closed

[SYNC] docs: how to disable publicDir (#4074) #18

github-actions bot opened this issue Jul 3, 2021 · 0 comments · Fixed by #27
Labels

Comments

@github-actions
Copy link
Contributor

github-actions bot commented Jul 3, 2021

docs: how to disable publicDir (#4074) (d697ef3)


+++ 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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants