mirror of
https://github.com/Rushilwiz/spaceout.git
synced 2025-04-23 04:49:50 -04:00
54 lines
1.5 KiB
JSON
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)"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|