Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/vite/src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,13 @@ export interface Plugin<A = any> extends RollupPlugin<A> {
* The hook receives the following arguments:
*
* - html: string
* - ctx?: vite.ServerContext (only present during serve)
* - bundle?: rollup.OutputBundle (only present during build)
* - ctx: IndexHtmlTransformContext, which contains:
* - path: public path when served
* - filename: filename on disk
* - server?: ViteDevServer (only present during serve)
* - bundle?: rollup.OutputBundle (only present during build)
* - chunk?: rollup.OutputChunk
* - originalUrl?: string
*
* It can either return a transformed string, or a list of html tag
* descriptors that will be injected into the `<head>` or `<body>`.
Expand Down