image-minimizer-webpack-plugin
Version:
Webpack loader and plugin to optimize (compress) images using imagemin
98 lines (97 loc) • 2.21 kB
JSON
{
"definitions": {
"Rule": {
"description": "Filtering rule as regex or string.",
"anyOf": [
{
"instanceof": "RegExp"
},
{
"type": "string",
"minLength": 1
}
]
},
"Rules": {
"description": "Filtering rules.",
"anyOf": [
{
"type": "array",
"items": {
"description": "A rule condition.",
"oneOf": [
{
"$ref": "#/definitions/Rule"
}
]
}
},
{
"$ref": "#/definitions/Rule"
}
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"test": {
"description": "Include all modules that pass test assertion.",
"oneOf": [
{
"$ref": "#/definitions/Rules"
}
]
},
"include": {
"description": "Include all modules matching any of these conditions.",
"oneOf": [
{
"$ref": "#/definitions/Rules"
}
]
},
"exclude": {
"description": "Exclude all modules matching any of these conditions.",
"oneOf": [
{
"$ref": "#/definitions/Rules"
}
]
},
"minimizerOptions": {
"description": "Options for `imageMinimizerOptions`.",
"additionalProperties": true,
"type": "object"
},
"filter": {
"description": "Allows filtering of images for optimization.",
"instanceof": "Function"
},
"severityError": {
"description": "Allows to choose how errors are displayed.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "string"
}
]
},
"loader": {
"description": "Automatically adding `imagemin-loader` (require for minification images using in `url-loader`, `svg-url-loader` or other).",
"type": "boolean"
},
"maxConcurrency": {
"description": "Maximum number of concurrency optimization processes in one time.",
"type": "number"
},
"filename": {
"type": "string"
},
"deleteOriginalAssets": {
"type": "boolean"
}
}
}