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