From d9702c40e74720601f5ea51bd2fbd6048ecf11ad Mon Sep 17 00:00:00 2001 From: Wermeille Bastien Date: Sat, 27 May 2023 11:03:21 +0200 Subject: [PATCH] docs: update root documentation to include vite config file location (#13345) Co-authored-by: patak --- docs/guide/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/guide/index.md b/docs/guide/index.md index 3ae2c5a0d27e3b..118c53a2f38515 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -110,6 +110,7 @@ Vite also supports [multi-page apps](./build#multi-page-app) with multiple `.htm #### Specifying Alternative Root Running `vite` starts the dev server using the current working directory as root. You can specify an alternative root with `vite serve some/sub/dir`. +Note that Vite will also resolve [its config file (i.e. `vite.config.js`)](/config/#configuring-vite) inside the project root, so you'll need to move it if the root is changed. ## Command Line Interface