merge-json-webpack-plugin
Version:
Webpack plugin to merge multiple json files into one
84 lines (83 loc) • 1.97 kB
JSON
{
"title": "MergeJsonPluginOptions",
"type": "object",
"additionalProperties": false,
"properties": {
"cwd": {
"description": "The directory, an absolute path, for resolving files",
"type": "string",
"minLength": 1
},
"force": {
"description": "Overwrites files already in compilation.assets",
"type": "boolean"
},
"mergeFn": {
"description": "A function used to merge two objects",
"instanceof": "Function"
},
"minify": {
"description": "Minify the output json",
"type": "boolean"
},
"groups": {
"description": "Files to merge and destination path",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"to"
],
"properties": {
"pattern": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"minLength": 1
}
},
{
"type": "string",
"minLength": 1
}
]
},
"files": {
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"minLength": 1
}
},
"transform": {
"instanceOf": "Function"
},
"transformFile": {
"instanceOf": "Function"
},
"to": {
"type": "string",
"minLength": 1
},
"globOptions": {
"description": "Options to forward to fast-glob",
"type": "object"
}
}
}
},
"globOptions": {
"description": "Options to forward to fast-glob",
"type": "object"
}
},
"required": [
"groups"
]
}