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/WebpackOptions.json
+44-7Lines changed: 44 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1335,19 +1335,23 @@
1335
1335
"type": "object",
1336
1336
"additionalProperties": false,
1337
1337
"properties": {
1338
+
"chunks": {
1339
+
"description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML)",
1340
+
"enum": [
1341
+
"initial",
1342
+
"async",
1343
+
"all"
1344
+
]
1345
+
},
1338
1346
"minSize": {
1339
1347
"description": "Minimal size for created chunk",
1340
1348
"type": "number",
1341
1349
"minimum": 0
1342
1350
},
1343
-
"includeInitialChunks": {
1344
-
"description": "Include initial chunks (This requires adding these chunks to the HTML)",
1345
-
"type": "boolean"
1346
-
},
1347
1351
"minChunks": {
1348
1352
"description": "Minimum number of times a module has to be duplicated until it's considered for splitting",
1349
1353
"type": "number",
1350
-
"minimum": 2
1354
+
"minimum": 1
1351
1355
},
1352
1356
"maxAsyncRequests": {
1353
1357
"description": "Maximum number of requests which are accepted for on-demand loading",
@@ -1391,7 +1395,7 @@
1391
1395
"type": "object",
1392
1396
"additionalProperties": {
1393
1397
"description": "Configuration for a cache group",
1394
-
"oneOf": [
1398
+
"anyOf": [
1395
1399
{
1396
1400
"instanceof": "Function"
1397
1401
},
@@ -1419,13 +1423,46 @@
1419
1423
}
1420
1424
]
1421
1425
},
1426
+
"chunks": {
1427
+
"description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML)",
1428
+
"enum": [
1429
+
"initial",
1430
+
"async",
1431
+
"all"
1432
+
]
1433
+
},
1422
1434
"enforce": {
1423
-
"description": "Include minimum size and maximum requests and always create chunks for this cache group",
1435
+
"description": "Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group",
1424
1436
"type": "boolean"
1425
1437
},
1438
+
"minSize": {
1439
+
"description": "Minimal size for created chunk",
1440
+
"type": "number",
1441
+
"minimum": 0
1442
+
},
1443
+
"minChunks": {
1444
+
"description": "Minimum number of times a module has to be duplicated until it's considered for splitting",
1445
+
"type": "number",
1446
+
"minimum": 1
1447
+
},
1448
+
"maxAsyncRequests": {
1449
+
"description": "Maximum number of requests which are accepted for on-demand loading",
1450
+
"type": "number",
1451
+
"minimum": 1
1452
+
},
1453
+
"maxInitialRequests": {
1454
+
"description": "Maximum number of initial chunks which are accepted for an entry point",
1455
+
"type": "number",
1456
+
"minimum": 1
1457
+
},
1426
1458
"name": {
1427
1459
"description": "Give chunks for this cache group a name (chunks with equal name are merged)",
0 commit comments