1 | {
|
2 | "definitions": {
|
3 | "rule": {
|
4 | "description": "Include source maps for modules based on their extension (defaults to .js and .css).",
|
5 | "anyOf": [
|
6 | {
|
7 | "instanceof": "RegExp",
|
8 | "tsType": "RegExp"
|
9 | },
|
10 | {
|
11 | "type": "string",
|
12 | "minLength": 1
|
13 | }
|
14 | ]
|
15 | },
|
16 | "rules": {
|
17 | "description": "Include source maps for modules based on their extension (defaults to .js and .css).",
|
18 | "anyOf": [
|
19 | {
|
20 | "type": "array",
|
21 | "items": {
|
22 | "description": "A rule condition.",
|
23 | "oneOf": [
|
24 | {
|
25 | "$ref": "#/definitions/rule"
|
26 | }
|
27 | ]
|
28 | }
|
29 | },
|
30 | {
|
31 | "$ref": "#/definitions/rule"
|
32 | }
|
33 | ]
|
34 | }
|
35 | },
|
36 | "title": "SourceMapDevToolPluginOptions",
|
37 | "type": "object",
|
38 | "additionalProperties": false,
|
39 | "properties": {
|
40 | "append": {
|
41 | "description": "Appends the given value to the original asset. Usually the #sourceMappingURL comment. [url] is replaced with a URL to the source map file. false disables the appending.",
|
42 | "anyOf": [
|
43 | {
|
44 | "description": "Append no SourceMap comment to the bundle, but still generate SourceMaps.",
|
45 | "enum": [false, null]
|
46 | },
|
47 | {
|
48 | "type": "string",
|
49 | "minLength": 1
|
50 | }
|
51 | ]
|
52 | },
|
53 | "columns": {
|
54 | "description": "Indicates whether column mappings should be used (defaults to true).",
|
55 | "type": "boolean"
|
56 | },
|
57 | "exclude": {
|
58 | "description": "Exclude modules that match the given value from source map generation.",
|
59 | "oneOf": [
|
60 | {
|
61 | "$ref": "#/definitions/rules"
|
62 | }
|
63 | ]
|
64 | },
|
65 | "fallbackModuleFilenameTemplate": {
|
66 | "description": "Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap used only if 'moduleFilenameTemplate' would result in a conflict.",
|
67 | "anyOf": [
|
68 | {
|
69 | "type": "string",
|
70 | "minLength": 1
|
71 | },
|
72 | {
|
73 | "description": "Custom function generating the identifier.",
|
74 | "instanceof": "Function",
|
75 | "tsType": "Function"
|
76 | }
|
77 | ]
|
78 | },
|
79 | "fileContext": {
|
80 | "description": "Path prefix to which the [file] placeholder is relative to.",
|
81 | "type": "string"
|
82 | },
|
83 | "filename": {
|
84 | "description": "Defines the output filename of the SourceMap (will be inlined if no value is provided).",
|
85 | "anyOf": [
|
86 | {
|
87 | "description": "Disable separate SourceMap file and inline SourceMap as DataUrl.",
|
88 | "enum": [false, null]
|
89 | },
|
90 | {
|
91 | "type": "string",
|
92 | "absolutePath": false,
|
93 | "minLength": 1
|
94 | }
|
95 | ]
|
96 | },
|
97 | "include": {
|
98 | "description": "Include source maps for module paths that match the given value.",
|
99 | "oneOf": [
|
100 | {
|
101 | "$ref": "#/definitions/rules"
|
102 | }
|
103 | ]
|
104 | },
|
105 | "module": {
|
106 | "description": "Indicates whether SourceMaps from loaders should be used (defaults to true).",
|
107 | "type": "boolean"
|
108 | },
|
109 | "moduleFilenameTemplate": {
|
110 | "description": "Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap.",
|
111 | "anyOf": [
|
112 | {
|
113 | "type": "string",
|
114 | "minLength": 1
|
115 | },
|
116 | {
|
117 | "description": "Custom function generating the identifier.",
|
118 | "instanceof": "Function",
|
119 | "tsType": "Function"
|
120 | }
|
121 | ]
|
122 | },
|
123 | "namespace": {
|
124 | "description": "Namespace prefix to allow multiple webpack roots in the devtools.",
|
125 | "type": "string"
|
126 | },
|
127 | "noSources": {
|
128 | "description": "Omit the 'sourceContents' array from the SourceMap.",
|
129 | "type": "boolean"
|
130 | },
|
131 | "publicPath": {
|
132 | "description": "Provide a custom public path for the SourceMapping comment.",
|
133 | "type": "string"
|
134 | },
|
135 | "sourceRoot": {
|
136 | "description": "Provide a custom value for the 'sourceRoot' property in the SourceMap.",
|
137 | "type": "string"
|
138 | },
|
139 | "test": {
|
140 | "$ref": "#/definitions/rules"
|
141 | }
|
142 | }
|
143 | }
|