You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d66fb0d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: schemas/webpackOptionsSchema.json
+52-15Lines changed: 52 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -158,6 +158,18 @@
158
158
},
159
159
{
160
160
"instanceof": "RegExp"
161
+
},
162
+
{
163
+
"items": {
164
+
"type": "string",
165
+
"absolutePath": true
166
+
},
167
+
"minItems": 1,
168
+
"type": "array"
169
+
},
170
+
{
171
+
"type": "string",
172
+
"absolutePath": true
161
173
}
162
174
]
163
175
},
@@ -244,7 +256,8 @@
244
256
},
245
257
"chunkFilename": {
246
258
"description": "The filename of non-entry chunks as relative path inside the `output.path` directory.",
247
-
"type": "string"
259
+
"type": "string",
260
+
"absolutePath": false
248
261
},
249
262
"crossOriginLoading": {
250
263
"description": "This option enables cross-origin loading of chunks.",
@@ -302,7 +315,8 @@
302
315
},
303
316
"filename": {
304
317
"description": "Specifies the name of each output file on disk. You must **not** specify an absolute path here! The `output.path` option determines the location on disk the files are written to, filename is used solely for naming the individual files.",
305
-
"type": "string"
318
+
"type": "string",
319
+
"absolutePath": false
306
320
},
307
321
"hashDigest": {
308
322
"minLength": 1,
@@ -318,15 +332,17 @@
318
332
},
319
333
"hotUpdateChunkFilename": {
320
334
"description": "The filename of the Hot Update Chunks. They are inside the output.path directory.",
321
-
"type": "string"
335
+
"type": "string",
336
+
"absolutePath": false
322
337
},
323
338
"hotUpdateFunction": {
324
339
"description": "The JSONP function used by webpack for async loading of hot update chunks.",
325
340
"type": "string"
326
341
},
327
342
"hotUpdateMainFilename": {
328
343
"description": "The filename of the Hot Update Main File. It is inside the `output.path` directory.",
329
-
"type": "string"
344
+
"type": "string",
345
+
"absolutePath": false
330
346
},
331
347
"jsonpFunction": {
332
348
"description": "The JSONP function used by webpack for async loading of chunks.",
@@ -364,7 +380,8 @@
364
380
},
365
381
"path": {
366
382
"description": "The output directory as **absolute path** (required).",
367
-
"type": "string"
383
+
"type": "string",
384
+
"absolutePath": true
368
385
},
369
386
"pathinfo": {
370
387
"description": "Include comments with information about the modules.",
@@ -376,7 +393,8 @@
376
393
},
377
394
"sourceMapFilename": {
378
395
"description": "The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory.",
379
-
"type": "string"
396
+
"type": "string",
397
+
"absolutePath": false
380
398
},
381
399
"sourcePrefix": {
382
400
"description": "Prefixes every line of the source in the bundle with this string.",
@@ -550,13 +568,22 @@
550
568
]
551
569
},
552
570
"exclude": {
553
-
"$ref": "#/definitions/ruleSet-condition"
571
+
"allOf": [
572
+
{"$ref": "#/definitions/ruleSet-condition"},
573
+
{"absolutePath": true}
574
+
]
554
575
},
555
576
"include": {
556
-
"$ref": "#/definitions/ruleSet-condition"
577
+
"allOf": [
578
+
{"$ref": "#/definitions/ruleSet-condition"},
579
+
{"absolutePath": true}
580
+
]
557
581
},
558
582
"issuer": {
559
-
"$ref": "#/definitions/ruleSet-condition"
583
+
"allOf": [
584
+
{"$ref": "#/definitions/ruleSet-condition"},
585
+
{"absolutePath": true}
586
+
]
560
587
},
561
588
"loader": {
562
589
"anyOf": [
@@ -585,7 +612,10 @@
585
612
"$ref": "#/definitions/ruleSet-query"
586
613
},
587
614
"resource": {
588
-
"$ref": "#/definitions/ruleSet-condition"
615
+
"allOf": [
616
+
{"$ref": "#/definitions/ruleSet-condition"},
617
+
{"absolutePath": true}
618
+
]
589
619
},
590
620
"resourceQuery": {
591
621
"$ref": "#/definitions/ruleSet-condition"
@@ -594,7 +624,10 @@
594
624
"$ref": "#/definitions/ruleSet-rules"
595
625
},
596
626
"test": {
597
-
"$ref": "#/definitions/ruleSet-condition"
627
+
"allOf": [
628
+
{"$ref": "#/definitions/ruleSet-condition"},
629
+
{"absolutePath": true}
630
+
]
598
631
},
599
632
"use": {
600
633
"$ref": "#/definitions/ruleSet-use"
@@ -673,7 +706,8 @@
673
706
},
674
707
"context": {
675
708
"description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.",
676
-
"type": "string"
709
+
"type": "string",
710
+
"absolutePath": true
677
711
},
678
712
"dependencies": {
679
713
"description": "References to other configurations to depend on.",
@@ -816,15 +850,18 @@
816
850
},
817
851
"recordsInputPath": {
818
852
"description": "Store compiler state to a json file.",
819
-
"type": "string"
853
+
"type": "string",
854
+
"absolutePath": true
820
855
},
821
856
"recordsOutputPath": {
822
857
"description": "Load compiler state from a json file.",
823
-
"type": "string"
858
+
"type": "string",
859
+
"absolutePath": true
824
860
},
825
861
"recordsPath": {
826
862
"description": "Store/Load compiler state from/to a json file. This will result in persistent ids of modules and chunks. An absolute path is expected. `recordsPath` is used for `recordsInputPath` and `recordsOutputPath` if they left undefined.",
0 commit comments