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