You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guide/api-plugin.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -338,7 +338,6 @@ Vite プラグインは Vite 特有の目的を果たすフックを提供する
338
338
`index.html` などの HTML エントリーポイントファイルを変換するための専用フック。このフックは現在の HTML 文字列と変換コンテキストを受け取ります。コンテキストは開発時には [`ViteDevServer`](./api-javascript#vitedevserver) を公開し、ビルド時には Rollup の出力バンドルを公開します。
339
339
340
340
このフックは非同期にすることも可能で、次のいずれかを返すことができます:
341
-
342
341
- 変換された HTML 文字列
343
342
- 既存の HTML に注入するタグ記述子オブジェクト(`{ tag, attrs, children }`)の配列。各タグは注入箇所を指定できます(デフォルトでは `<head>` の前)
344
343
- 両方を含むオブジェクト `{ html, tags }`
@@ -417,13 +416,11 @@ Vite プラグインは Vite 特有の目的を果たすフックを提供する
0 commit comments