Interface: RuleSetRule
Defined in: webpack/types.d.ts:16201 A rule description with conditions and effects for modules.Properties
assert?
Defined in: webpack/types.d.ts:16205 Match on import assertions of the dependency.optionalassert:object
Index Signature
[index: string]: RuleSetConditionOrConditions
compiler?
Defined in: webpack/types.d.ts:16210 Match the child compiler name.optionalcompiler:string|RegExp|RuleSetLogicalConditions|RuleSetCondition[] | (value) =>boolean
dependency?
Defined in: webpack/types.d.ts:16220 Match dependency type.optionaldependency:string|RegExp|RuleSetLogicalConditions|RuleSetCondition[] | (value) =>boolean
descriptionData?
Defined in: webpack/types.d.ts:16230 Match values of properties in the description file (usually package.json).optionaldescriptionData:object
Index Signature
[index: string]: RuleSetConditionOrConditions
enforce?
Defined in: webpack/types.d.ts:16235 Enforce this rule as pre or post step.optionalenforce:"pre"|"post"
exclude?
Defined in: webpack/types.d.ts:16240 Shortcut for resource.exclude.optionalexclude:string|RegExp|RuleSetLogicalConditionsAbsolute|RuleSetConditionAbsolute[] | (value) =>boolean
extractSourceMap?
Defined in: webpack/types.d.ts:16250 Enable/Disable extracting source map.optionalextractSourceMap:boolean
generator?
Defined in: webpack/types.d.ts:16255 The options for the module generator.optionalgenerator:object
Index Signature
[index: string]: any
include?
Defined in: webpack/types.d.ts:16260 Shortcut for resource.include.optionalinclude:string|RegExp|RuleSetLogicalConditionsAbsolute|RuleSetConditionAbsolute[] | (value) =>boolean
issuer?
Defined in: webpack/types.d.ts:16270 Match the issuer of the module (The module pointing to this module).optionalissuer:string|RegExp|RuleSetLogicalConditionsAbsolute|RuleSetConditionAbsolute[] | (value) =>boolean
issuerLayer?
Defined in: webpack/types.d.ts:16280 Match layer of the issuer of this module (The module pointing to this module).optionalissuerLayer:string|RegExp|RuleSetLogicalConditions|RuleSetCondition[] | (value) =>boolean
layer?
Defined in: webpack/types.d.ts:16290 Specifies the layer in which the module should be placed in.optionallayer:string
loader?
Defined in: webpack/types.d.ts:16295 Shortcut for use.loader.optionalloader:string
mimetype?
Defined in: webpack/types.d.ts:16300 Match module mimetype when load from Data URI.optionalmimetype:string|RegExp|RuleSetLogicalConditions|RuleSetCondition[] | (value) =>boolean
oneOf?
Defined in: webpack/types.d.ts:16310 Only execute the first matching rule in this array.optionaloneOf: (false|""|0|RuleSetRule)[]
options?
Defined in: webpack/types.d.ts:16315 Shortcut for use.options.optionaloptions:string| {[index:string]:any; }
parser?
Defined in: webpack/types.d.ts:16320 Options for parsing.optionalparser:object
Index Signature
[index: string]: any
realResource?
Defined in: webpack/types.d.ts:16325 Match the real resource path of the module.optionalrealResource:string|RegExp|RuleSetLogicalConditionsAbsolute|RuleSetConditionAbsolute[] | (value) =>boolean
resolve?
Defined in: webpack/types.d.ts:16335 Options for the resolver.optionalresolve:ResolveOptions
resource?
Defined in: webpack/types.d.ts:16340 Match the resource path of the module.optionalresource:string|RegExp|RuleSetLogicalConditionsAbsolute|RuleSetConditionAbsolute[] | (value) =>boolean
resourceFragment?
Defined in: webpack/types.d.ts:16350 Match the resource fragment of the module.optionalresourceFragment:string|RegExp|RuleSetLogicalConditions|RuleSetCondition[] | (value) =>boolean
resourceQuery?
Defined in: webpack/types.d.ts:16360 Match the resource query of the module.optionalresourceQuery:string|RegExp|RuleSetLogicalConditions|RuleSetCondition[] | (value) =>boolean
rules?
Defined in: webpack/types.d.ts:16370 Match and execute these rules when this rule is matched.optionalrules: (false|""|0|RuleSetRule)[]
scheme?
Defined in: webpack/types.d.ts:16375 Match module scheme.optionalscheme:string|RegExp|RuleSetLogicalConditions|RuleSetCondition[] | (value) =>boolean
sideEffects?
Defined in: webpack/types.d.ts:16385 Flags a module as with or without side effects.optionalsideEffects:boolean
test?
Defined in: webpack/types.d.ts:16390 Shortcut for resource.test.optionaltest:string|RegExp|RuleSetLogicalConditionsAbsolute|RuleSetConditionAbsolute[] | (value) =>boolean
type?
Defined in: webpack/types.d.ts:16400 Module type to use for the module.optionaltype:string
use?
Defined in: webpack/types.d.ts:16405 Modifiers applied to the module when rule is matched.optionaluse:string|RuleSetUseFunction| {ident?:string;loader?:string;options?:string| {[index:string]:any; }; } | (string|false|0|RuleSetUseFunction| {ident?:string;loader?:string;options?:string| {[index:string]:any; }; })[]
Type Declaration
string
RuleSetUseFunction
{ ident?: string; loader?: string; options?: string | {[index: string]: any; }; }
ident?
Unique loader options identifier.optionalident:string
loader?
Loader name.optionalloader:string
options?
Loader options. (optionaloptions:string| {[index:string]:any; }
string | false | 0 | RuleSetUseFunction | { ident?: string; loader?: string; options?: string | {[index: string]: any; }; })[]
with?
Defined in: webpack/types.d.ts:16448 Match on import attributes of the dependency.optionalwith:object
Index Signature
[index: string]: RuleSetConditionOrConditions