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

54 lines
1.5 KiB
JSON

{
"definitions": {
"DataUrlFunction": {
"description": "Function that executes for module and should return an DataUrl string.",
"instanceof": "Function",
"tsType": "((source: string | Buffer, context: { filename: string, module: import('../../lib/Module') }) => string)"
},
"DataUrlOptions": {
"description": "Options object for data url generation.",
"type": "object",
"additionalProperties": false,
"properties": {
"encoding": {
"description": "Asset encoding (defaults to base64).",
"enum": [false, "base64"]
},
"mimetype": {
"description": "Asset mimetype (getting from file extension by default).",
"type": "string"
}
}
}
},
"title": "AssetModulesPluginGeneratorOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"dataUrl": {
"description": "The options for data url generator.",
"anyOf": [
{
"$ref": "#/definitions/DataUrlOptions"
},
{
"$ref": "#/definitions/DataUrlFunction"
}
]
},
"filename": {
"description": "Template for asset filename.",
"anyOf": [
{
"type": "string",
"absolutePath": false
},
{
"instanceof": "Function",
"tsType": "((pathData: import(\"../../lib/Compilation\").PathData, assetInfo?: import(\"../../lib/Compilation\").AssetInfo) => string)"
}
]
}
}
}