Skip to content

Commit e53c029

Browse files
authored
docs: clarification transformIndexHtml (#8786)
1 parent de8fdd8 commit e53c029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/api-plugin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ Vite plugins can also provide hooks that serve Vite-specific purposes. These hoo
332332
- **Type:** `IndexHtmlTransformHook | { enforce?: 'pre' | 'post', transform: IndexHtmlTransformHook }`
333333
- **Kind:** `async`, `sequential`
334334

335-
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.
335+
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.
336336

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

0 commit comments

Comments
 (0)