On this page

One default-hint rule for URL-referenced assets emitted by this parser (JS new URL(...), CSS url(...), HTML <img src> / <link href> / <script src>). test / include / exclude match against the asset's request; omit all three to apply to every asset. Matching rules set the same fields a webpackPrefetch / webpackPreload / webpackAs / webpackType / webpackMedia / webpackFetchPriority magic comment would; explicit magic comments on the same URL still win.

Type:string

Default as attribute (script / style / font / image / …).

A condition matcher.

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

Default fetchpriority for prefetch / preload links.

A condition matcher.

Type:string

Default media attribute (e.g. "(min-width: 800px)").

Type:boolean

When true, emit <link rel="prefetch"> for matching assets without an explicit hint comment.

Type:boolean

When true, emit <link rel="preload"> for matching assets without an explicit hint comment.

A condition matcher.

Type:string

Default type attribute (MIME).