We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
transformIndexHtml
1 parent 3e87335 commit a0e1a04Copy full SHA for a0e1a04
packages/vite/src/node/plugin.ts
@@ -292,8 +292,13 @@ export interface Plugin<A = any> extends RollupPlugin<A> {
292
* The hook receives the following arguments:
293
*
294
* - html: string
295
- * - ctx?: vite.ServerContext (only present during serve)
296
- * - bundle?: rollup.OutputBundle (only present during build)
+ * - ctx: IndexHtmlTransformContext, which contains:
+ * - path: public path when served
297
+ * - filename: filename on disk
298
+ * - server?: ViteDevServer (only present during serve)
299
+ * - bundle?: rollup.OutputBundle (only present during build)
300
+ * - chunk?: rollup.OutputChunk
301
+ * - originalUrl?: string
302
303
* It can either return a transformed string, or a list of html tag
304
* descriptors that will be injected into the `<head>` or `<body>`.
0 commit comments