Skip to content

Commit

Permalink
add realResource parameter to RuleSetRule
Browse files Browse the repository at this point in the history
  • Loading branch information
vankop committed Jun 25, 2019
1 parent 9eb078b commit b320269
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions declarations/WebpackOptions.d.ts
Expand Up @@ -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
*/
Expand Down
8 changes: 8 additions & 0 deletions schemas/WebpackOptions.json
Expand Up @@ -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": [
Expand Down

0 comments on commit b320269

Please sign in to comment.