Home / Function/ html() — astro Function Reference

html() — astro Function Reference

Architecture documentation for the html() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  3023803f_eba8_cba3_8fb1_5cc386b74293["html()"]
  d889d388_a82b_2f07_9eb1_ee9601abd1e4["index.ts"]
  3023803f_eba8_cba3_8fb1_5cc386b74293 -->|defined in| d889d388_a82b_2f07_9eb1_ee9601abd1e4
  style 3023803f_eba8_cba3_8fb1_5cc386b74293 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/vite-plugin-html/index.ts lines 3–16

export default function html() {
	return {
		name: 'astro:html',
		options(options: any) {
			options.plugins = options.plugins?.filter((p: any) => p.name !== 'vite:build-html');
		},
		transform: {
			filter: {
				id: /\.html$/,
			},
			handler: transform,
		},
	};
}

Domain

Subdomains

Frequently Asked Questions

What does html() do?
html() is a function in the astro codebase, defined in packages/astro/src/vite-plugin-html/index.ts.
Where is html() defined?
html() is defined in packages/astro/src/vite-plugin-html/index.ts at line 3.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free