Skip to content

Commit 0dbb595

Browse files
committed
add warnings filter option to options schema
1 parent 45501ce commit 0dbb595

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

schemas/webpackOptionsSchema.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,19 @@
704704
"type": "object"
705705
}
706706
]
707+
},
708+
"warning-filters-types": {
709+
"anyOf": [
710+
{
711+
"instanceof": "RegExp"
712+
},
713+
{
714+
"type": "string"
715+
},
716+
{
717+
"instanceof": "Function"
718+
}
719+
]
707720
}
708721
},
709722
"properties": {
@@ -947,6 +960,20 @@
947960
"type": "boolean",
948961
"description": "add the source code of modules"
949962
},
963+
"warningsFilter": {
964+
"description": "Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions",
965+
"anyOf": [
966+
{
967+
"type": "array",
968+
"items": {
969+
"$ref": "#/definitions/warning-filters-types"
970+
}
971+
},
972+
{
973+
"$ref": "#/definitions/warning-filters-types"
974+
}
975+
]
976+
},
950977
"errorDetails": {
951978
"type": "boolean",
952979
"description": "add details to errors (like resolving log)"

0 commit comments

Comments
 (0)