Skip to content

Commit

Permalink
docs: clarification transformIndexHtml (#8786)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Singh1 committed Jun 26, 2022
1 parent de8fdd8 commit e53c029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/api-plugin.md
Expand Up @@ -332,7 +332,7 @@ Vite plugins can also provide hooks that serve Vite-specific purposes. These hoo
- **Type:** `IndexHtmlTransformHook | { enforce?: 'pre' | 'post', transform: IndexHtmlTransformHook }`
- **Kind:** `async`, `sequential`

Dedicated hook for transforming `index.html`. The hook receives the current HTML string and a transform context. The context exposes the [`ViteDevServer`](./api-javascript#vitedevserver) instance during dev, and exposes the Rollup output bundle during build.
Dedicated hook for transforming HTML entry point files such as `index.html`. The hook receives the current HTML string and a transform context. The context exposes the [`ViteDevServer`](./api-javascript#vitedevserver) instance during dev, and exposes the Rollup output bundle during build.

The hook can be async and can return one of the following:

Expand Down

0 comments on commit e53c029

Please sign in to comment.