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
Copy file name to clipboardExpand all lines: schemas/webpackOptionsSchema.json
+40-5Lines changed: 40 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -296,7 +296,14 @@
296
296
},
297
297
"chunkFilename": {
298
298
"description": "The filename of non-entry chunks as relative path inside the `output.path` directory.",
299
-
"type": "string",
299
+
"anyOf": [
300
+
{
301
+
"type": "string"
302
+
},
303
+
{
304
+
"instanceof": "Function"
305
+
}
306
+
],
300
307
"absolutePath": false
301
308
},
302
309
"crossOriginLoading": {
@@ -348,7 +355,14 @@
348
355
},
349
356
"filename": {
350
357
"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.",
351
-
"type": "string",
358
+
"anyOf": [
359
+
{
360
+
"type": "string"
361
+
},
362
+
{
363
+
"instanceof": "Function"
364
+
}
365
+
],
352
366
"absolutePath": false
353
367
},
354
368
"hashDigest": {
@@ -376,7 +390,14 @@
376
390
},
377
391
"hotUpdateChunkFilename": {
378
392
"description": "The filename of the Hot Update Chunks. They are inside the output.path directory.",
379
-
"type": "string",
393
+
"anyOf": [
394
+
{
395
+
"type": "string"
396
+
},
397
+
{
398
+
"instanceof": "Function"
399
+
}
400
+
],
380
401
"absolutePath": false
381
402
},
382
403
"hotUpdateFunction": {
@@ -385,7 +406,14 @@
385
406
},
386
407
"hotUpdateMainFilename": {
387
408
"description": "The filename of the Hot Update Main File. It is inside the `output.path` directory.",
388
-
"type": "string",
409
+
"anyOf": [
410
+
{
411
+
"type": "string"
412
+
},
413
+
{
414
+
"instanceof": "Function"
415
+
}
416
+
],
389
417
"absolutePath": false
390
418
},
391
419
"jsonpFunction": {
@@ -464,7 +492,14 @@
464
492
},
465
493
"publicPath": {
466
494
"description": "The `publicPath` specifies the public URL address of the output files when referenced in a browser.",
467
-
"type": "string"
495
+
"anyOf": [
496
+
{
497
+
"type": "string"
498
+
},
499
+
{
500
+
"instanceof": "Function"
501
+
}
502
+
]
468
503
},
469
504
"sourceMapFilename": {
470
505
"description": "The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory.",
" * configuration.entry should be an instance of function",
130
130
" -> A Function returning an entry object, an entry string, an entry array or a promise to these things.",
131
-
" - configuration.output.filename should be a string.",
132
-
" -> 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."
131
+
" - configuration.output.filename should be one of these:",
132
+
" string | function",
133
+
" -> 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.",
134
+
" Details:",
135
+
" * configuration.output.filename should be a string.",
136
+
" * configuration.output.filename should be an instance of function"
" * configuration[0].entry should be an instance of function",
156
160
" -> A Function returning an entry object, an entry string, an entry array or a promise to these things.",
157
-
" - configuration[1].output.filename should be a string.",
158
-
" -> 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."
161
+
" - configuration[1].output.filename should be one of these:",
162
+
" string | function",
163
+
" -> 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.",
164
+
" Details:",
165
+
" * configuration[1].output.filename should be a string.",
166
+
" * configuration[1].output.filename should be an instance of function",
0 commit comments