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
{{ message }}
Repository navigation
Commit b3a6c71
Browse filesBrowse the repository at this point in the historyBrowse files
|`output`|`string`| Required | The directory where HTML and Vite's hashed client output are written |
16
+
|`output`|`string`| Required | The directory where HTML and bundled client output are written|
15
17
|`templatePath`|`string`|`'template.html'`| Path to the HTML template file |
16
18
|`project`|`string`|`'Node.js'`| Project name used in page titles and the version selector |
17
19
|`title`|`string`|`'{project} v{version} Documentation'`| Title template for HTML pages (supports `{project}`, `{version}`) |
@@ -21,9 +23,9 @@ The `web` generator accepts the following configuration options:
21
23
|`remoteConfigUrl`|`string`|`'https://nodejs.org/site.json'`| URL fetched client-side at runtime for remote site config (currently used to power the announcement banner) |
22
24
|`head`|`object`| See below | Configurable `<meta>`, `<link>`, and raw markup for the document head |
23
25
|`imports`|`object`| See below | Object mapping `#theme/` aliases to component paths for customization |
24
-
|`virtualImports`|`object`|`{}`| Additional virtual module mappings merged into both Vite builds |
26
+
|`virtualImports`|`object`|`{}`| Additional virtual module mappings supplied to the server and client builds|
25
27
|`components`|`object`|`{}`| Maps JSX tag names to component imports, enabling JSX-in-MDX (see below) |
26
-
|`vite`|`UserConfig`|`{}`| Vite configuration merged into the client and SSR builds (see below)|
28
+
|`bundler`|`WebBundler`|Vite adapter| Adapter that renders server entries and writes the client and HTML output (see below) |
27
29
28
30
### `head`
29
31
@@ -69,20 +71,74 @@ export default {
69
71
> via `head`, including `og:title` (which mirrors the per-page title) and
70
72
> `og:type`. The UI stylesheet bundles its fonts locally.
71
73
72
-
### Custom Vite options
74
+
### Bundler adapters
73
75
74
-
The `vite` object is merged into both production builds. This supports Vite
75
-
plugins, aliases, `define`, asset options, and native Lightning CSS settings.
76
-
Use `import.meta.env.SSR` inside application code or plugin transforms when
77
-
behavior must differ between the SSR and browser builds.
76
+
The `bundler` option accepts a small Doc Kit adapter rather than configuration
0 commit comments