Skip to content

Commit 42ff9b3

Browse files
authored
docs: clarify build.manifest / build.ssrManifest option values (#19582)
1 parent 6113a96 commit 42ff9b3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/config/build-options.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,19 @@ export default defineConfig({
191191
- **Default:** `false`
192192
- **Related:** [Backend Integration](/guide/backend-integration)
193193

194-
When set to `true`, the build will also generate a `.vite/manifest.json` file that contains a mapping of non-hashed asset filenames to their hashed versions, which can then be used by a server framework to render the correct asset links. When the value is a string, it will be used as the manifest file name.
194+
Whether to generate a manifest file that contains a mapping of non-hashed asset filenames to their hashed versions, which can then be used by a server framework to render the correct asset links.
195+
196+
When the value is a string, it will be used as the manifest file path relative to `build.outDir`. When set to `true`, the path would be `.vite/manifest.json`.
195197

196198
## build.ssrManifest
197199

198200
- **Type:** `boolean | string`
199201
- **Default:** `false`
200202
- **Related:** [Server-Side Rendering](/guide/ssr)
201203

202-
When set to `true`, the build will also generate an SSR manifest for determining style links and asset preload directives in production. When the value is a string, it will be used as the manifest file name.
204+
Whether to generate a SSR manifest file for determining style links and asset preload directives in production.
205+
206+
When the value is a string, it will be used as the manifest file path relative to `build.outDir`. When set to `true`, the path would be `.vite/ssr-manifest.json`.
203207

204208
## build.ssr
205209

0 commit comments

Comments
 (0)