mirror of https://github.com/webpack/webpack.git
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",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/DataUrlOptions"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/DataUrlFunction"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|