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.
stringDefault as attribute (script / style / font / image / …).
string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)A condition matcher.
false | "auto" | "high" | "low"Default fetchpriority for prefetch / preload links.
string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)A condition matcher.
stringDefault media attribute (e.g. "(min-width: 800px)").
booleanWhen true, emit <link rel="prefetch"> for matching assets without an explicit hint comment.
booleanWhen true, emit <link rel="preload"> for matching assets without an explicit hint comment.
string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)A condition matcher.
stringDefault type attribute (MIME).