copy-asset-in-memory-webpack-plugin
Version:
Copy assets in webpack memory
93 lines (92 loc) • 1.89 kB
JSON
{
"definitions": {
"Rule": {
"description": "Filtering rule as regex or string.",
"anyOf": [
{
"instanceof": "RegExp",
"tsType": "RegExp"
},
{
"type": "string",
"minLength": 1
}
]
},
"Rules": {
"description": "Filtering rules.",
"anyOf": [
{
"type": "array",
"items": {
"description": "A rule condition.",
"oneOf": [
{
"$ref": "#/definitions/Rule"
}
]
}
},
{
"$ref": "#/definitions/Rule"
}
]
}
},
"type": "object",
"additionalProperties": false,
"required": [
"test",
"to"
],
"properties": {
"test": {
"description": "Include all assets that pass test assertion.",
"oneOf": [
{
"$ref": "#/definitions/Rules"
}
]
},
"include": {
"description": "Include all assets matching any of these conditions.",
"oneOf": [
{
"$ref": "#/definitions/Rules"
}
]
},
"exclude": {
"description": "Exclude all assets matching any of these conditions.",
"oneOf": [
{
"$ref": "#/definitions/Rules"
}
]
},
"stage": {
"description": "Stages in processAssetsHook",
"type": "number"
},
"transform": {
"description": "Transform asset content",
"instanceof": "Function"
},
"to": {
"description": "Asset destination",
"anyOf": [
{
"instanceof": "Function"
},
{
"type": "string",
"minLength": 1
}
]
},
"deleteOriginalAssets": {
"description": "Whether to delete the original assets or not.",
"type": "boolean"
}
}
}