On this page

A custom resource-hint <link> for output.html.resourceHints. Exactly one of href / chunk / entry names the target.

Type:string

The as attribute (script, style, font, …); defaults to script for chunk/entry references.

Type:string

Name of a chunk to hint; its emitted URL is resolved automatically.

Type:boolean | "use-credentials" | "anonymous"

The CORS mode; true maps to anonymous.

Type:string

Name of an entrypoint to hint; expands to one hint per initial chunk.

Type:"auto" | "high" | "low"

The fetchpriority attribute. Emitted on preload / modulepreload and on prefetch (the spec now permits it there).

Type:string

A literal URL used verbatim (external resource, preconnect origin, or an already-hashed asset).

Type:boolean

Subresource Integrity for a chunk/entry reference. Follows output.html.integrity by default; set false to opt this hint out.

Type:string

The media attribute.

Type:"preload" | "prefetch" | "modulepreload" | "preconnect" | "dns-prefetch"

The rel of the resource hint.

Type:string

The type attribute (MIME type).