webpack-image-placeholder-loader
Version:
Generate a solid color image or blurred image as placeholder
51 lines (50 loc) • 1.48 kB
JSON
{
"additionalProperties": true,
"type": "object",
"properties": {
"format": {
"description": "Format of output",
"enum": ["base64", "blurred-svg", "hex", "rgb", "array"]
},
"size": {
"description": "Size of output image. Only apply when the format is base64",
"anyOf": [
{
"type": "number",
"minimum": 1
},
{
"enum": ["original"]
}
]
},
"blurQuality": {
"description": "Quality of blur image. Only apply when the format is blurred-svg",
"type": "number",
"minimum": 0,
"maximum": 100
},
"color": {
"description": "Color of output image.",
"anyOf": [
{
"type": "string"
},
{ "type": "object" }
]
},
"backgroundColor": {
"description": "Color of background if image contains transparency.",
"anyOf": [
{
"type": "string"
},
{ "type": "object" }
]
},
"esModule": {
"description": "By default, webpack-image-placeholder-loader generates JS modules that use the ES modules syntax.",
"type": "boolean"
}
}
}