[6a3a178] | 1 | {
|
---|
| 2 | "definitions": {
|
---|
| 3 | "BannerFunction": {
|
---|
| 4 | "description": "The banner as function, it will be wrapped in a comment.",
|
---|
| 5 | "instanceof": "Function",
|
---|
| 6 | "tsType": "(data: { hash: string, chunk: import('../../lib/Chunk'), filename: string }) => string"
|
---|
| 7 | },
|
---|
| 8 | "Rule": {
|
---|
| 9 | "description": "Filtering rule as regex or string.",
|
---|
| 10 | "anyOf": [
|
---|
| 11 | {
|
---|
| 12 | "instanceof": "RegExp",
|
---|
| 13 | "tsType": "RegExp"
|
---|
| 14 | },
|
---|
| 15 | {
|
---|
| 16 | "type": "string",
|
---|
| 17 | "minLength": 1
|
---|
| 18 | }
|
---|
| 19 | ]
|
---|
| 20 | },
|
---|
| 21 | "Rules": {
|
---|
| 22 | "description": "Filtering rules.",
|
---|
| 23 | "anyOf": [
|
---|
| 24 | {
|
---|
| 25 | "type": "array",
|
---|
| 26 | "items": {
|
---|
| 27 | "description": "A rule condition.",
|
---|
| 28 | "oneOf": [
|
---|
| 29 | {
|
---|
| 30 | "$ref": "#/definitions/Rule"
|
---|
| 31 | }
|
---|
| 32 | ]
|
---|
| 33 | }
|
---|
| 34 | },
|
---|
| 35 | {
|
---|
| 36 | "$ref": "#/definitions/Rule"
|
---|
| 37 | }
|
---|
| 38 | ]
|
---|
| 39 | }
|
---|
| 40 | },
|
---|
| 41 | "title": "BannerPluginArgument",
|
---|
| 42 | "anyOf": [
|
---|
| 43 | {
|
---|
| 44 | "description": "The banner as string, it will be wrapped in a comment.",
|
---|
| 45 | "type": "string",
|
---|
| 46 | "minLength": 1
|
---|
| 47 | },
|
---|
| 48 | {
|
---|
| 49 | "title": "BannerPluginOptions",
|
---|
| 50 | "type": "object",
|
---|
| 51 | "additionalProperties": false,
|
---|
| 52 | "properties": {
|
---|
| 53 | "banner": {
|
---|
| 54 | "description": "Specifies the banner.",
|
---|
| 55 | "anyOf": [
|
---|
| 56 | {
|
---|
| 57 | "type": "string"
|
---|
| 58 | },
|
---|
| 59 | {
|
---|
| 60 | "$ref": "#/definitions/BannerFunction"
|
---|
| 61 | }
|
---|
| 62 | ]
|
---|
| 63 | },
|
---|
| 64 | "entryOnly": {
|
---|
| 65 | "description": "If true, the banner will only be added to the entry chunks.",
|
---|
| 66 | "type": "boolean"
|
---|
| 67 | },
|
---|
| 68 | "exclude": {
|
---|
| 69 | "description": "Exclude all modules matching any of these conditions.",
|
---|
| 70 | "oneOf": [
|
---|
| 71 | {
|
---|
| 72 | "$ref": "#/definitions/Rules"
|
---|
| 73 | }
|
---|
| 74 | ]
|
---|
| 75 | },
|
---|
| 76 | "include": {
|
---|
| 77 | "description": "Include all modules matching any of these conditions.",
|
---|
| 78 | "oneOf": [
|
---|
| 79 | {
|
---|
| 80 | "$ref": "#/definitions/Rules"
|
---|
| 81 | }
|
---|
| 82 | ]
|
---|
| 83 | },
|
---|
| 84 | "raw": {
|
---|
| 85 | "description": "If true, banner will not be wrapped in a comment.",
|
---|
| 86 | "type": "boolean"
|
---|
| 87 | },
|
---|
| 88 | "test": {
|
---|
| 89 | "description": "Include all modules that pass test assertion.",
|
---|
| 90 | "oneOf": [
|
---|
| 91 | {
|
---|
| 92 | "$ref": "#/definitions/Rules"
|
---|
| 93 | }
|
---|
| 94 | ]
|
---|
| 95 | }
|
---|
| 96 | },
|
---|
| 97 | "required": ["banner"]
|
---|
| 98 | },
|
---|
| 99 | {
|
---|
| 100 | "$ref": "#/definitions/BannerFunction"
|
---|
| 101 | }
|
---|
| 102 | ]
|
---|
| 103 | }
|
---|