spaceout/front_end/node_modules/webpack/schemas/plugins/AssetModulesPluginParser.json
2020-12-12 10:25:30 -05:00

37 lines
1.0 KiB
JSON

{
"definitions": {
"DataUrlFunction": {
"description": "Function that executes for module and should return whenever asset should be inlined as DataUrl.",
"instanceof": "Function",
"tsType": "((source: string | Buffer, context: { filename: string, module: import('../../lib/Module') }) => boolean)"
},
"DataUrlOptions": {
"description": "Options object for DataUrl condition.",
"type": "object",
"additionalProperties": false,
"properties": {
"maxSize": {
"description": "Maximum size of asset that should be inline as modules. Default: 8kb.",
"type": "number"
}
}
}
},
"title": "AssetModulesPluginParserOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"dataUrlCondition": {
"description": "The condition for inlining the asset as DataUrl.",
"anyOf": [
{
"$ref": "#/definitions/DataUrlOptions"
},
{
"$ref": "#/definitions/DataUrlFunction"
}
]
}
}
}