Skip to content

Commit

Permalink
fix: docs for ssr manifest plugin and dedupe name (#4974)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored Sep 18, 2021
1 parent 72d0683 commit 1bd6d56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,14 @@ createServer()

When set to `true`, the build will also generate a `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.

### build.ssrManifest

- **Type:** `boolean`
- **Default:** `false`
- **Related:** [Server-Side Rendering](/guide/ssr)

When set to `true`, the build will also generate a SSR manifest for determining style links and asset preload directives in production.

### build.minify

- **Type:** `boolean | 'terser' | 'esbuild'`
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/ssr/ssrManifestPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function ssrManifestPlugin(config: ResolvedConfig): Plugin {
const base = config.base

return {
name: 'vite:manifest',
name: 'vite:ssr-manifest',
generateBundle(_options, bundle) {
for (const file in bundle) {
const chunk = bundle[file]
Expand Down

0 comments on commit 1bd6d56

Please sign in to comment.