diff --git a/declarations/WebpackOptions.d.ts b/declarations/WebpackOptions.d.ts index d2408e18456..eed34e7b6c3 100644 --- a/declarations/WebpackOptions.d.ts +++ b/declarations/WebpackOptions.d.ts @@ -566,6 +566,10 @@ export interface RuleSetRule { * Match the resource path of the module */ resource?: RuleSetConditionOrConditionsAbsolute; + /** + * Match rules with custom resource name + */ + realResource?: RuleSetConditionOrConditions; /** * Match the resource query of the module */ diff --git a/schemas/WebpackOptions.json b/schemas/WebpackOptions.json index 5e51cddeb3a..4fdfa5bc417 100644 --- a/schemas/WebpackOptions.json +++ b/schemas/WebpackOptions.json @@ -1528,6 +1528,14 @@ } ] }, + "realResource": { + "description": "Match rules with custom resource name", + "anyOf": [ + { + "$ref": "#/definitions/RuleSetConditionOrConditions" + } + ] + }, "resourceQuery": { "description": "Match the resource query of the module", "anyOf": [