UNPKG

json-minimizer-webpack-plugin

Version:
117 lines (116 loc) 2.75 kB
{ "definitions": { "Rule": { "description": "Filtering rule as regex or string.", "anyOf": [ { "instanceof": "RegExp", "tsType": "RegExp" }, { "type": "string", "minLength": 1 } ] }, "Rules": { "description": "Filtering rules.", "anyOf": [ { "type": "array", "items": { "description": "A rule condition.", "oneOf": [ { "$ref": "#/definitions/Rule" } ] } }, { "$ref": "#/definitions/Rule" } ] }, "StringPattern": { "type": "string", "minLength": 1 } }, "title": "JsonMinimizerWebpackPluginOptions", "type": "object", "properties": { "test": { "description": "Include all modules that pass test assertion.", "link": "https://github.com/webpack-contrib/json-minimizer-webpack-plugin#test", "oneOf": [ { "$ref": "#/definitions/Rules" } ] }, "include": { "description": "Include all modules matching any of these conditions.", "link": "https://github.com/webpack-contrib/json-minimizer-webpack-plugin#include", "oneOf": [ { "$ref": "#/definitions/Rules" } ] }, "exclude": { "description": "Exclude all modules matching any of these conditions.", "link": "https://github.com/webpack-contrib/json-minimizer-webpack-plugin#exclude", "oneOf": [ { "$ref": "#/definitions/Rules" } ] }, "minimizerOptions": { "description": "Options for `jsonMinimizerOptions`.", "link": "https://github.com/webpack-contrib/json-minimizer-webpack-plugin#minimizeroptions", "additionalProperties": false, "type": "object", "properties": { "replacer": { "anyOf": [ { "type": "null" }, { "instanceof": "Function" }, { "type": "array", "items": { "anyOf": [ { "$ref": "#/definitions/StringPattern" }, { "type": "number" } ] } } ] }, "space": { "anyOf": [ { "type": "null" }, { "$ref": "#/definitions/StringPattern" }, { "type": "number" } ] } } } }, "additionalProperties": false }