File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -292,8 +292,13 @@ export interface Plugin<A = any> extends RollupPlugin<A> {
292
292
* The hook receives the following arguments:
293
293
*
294
294
* - html: string
295
- * - ctx?: vite.ServerContext (only present during serve)
296
- * - bundle?: rollup.OutputBundle (only present during build)
295
+ * - ctx: IndexHtmlTransformContext, which contains:
296
+ * - 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
297
302
*
298
303
* It can either return a transformed string, or a list of html tag
299
304
* descriptors that will be injected into the `<head>` or `<body>`.
You can’t perform that action at this time.
0 commit comments