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
+42-2Lines changed: 42 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1325,11 +1325,51 @@
1325
1325
},
1326
1326
"asyncCommonsChunks": {
1327
1327
"description": "Automatically deduplicate modules in on-demand chunks by creating additional async-loaded shared chunks",
1328
-
"type": "boolean"
1328
+
"oneOf": [
1329
+
{
1330
+
"type": "boolean"
1331
+
},
1332
+
{
1333
+
"type": "object",
1334
+
"additionalProperties": false,
1335
+
"properties": {
1336
+
"minSize": {
1337
+
"description": "Specify the minimum size of commons chunks at which they are created",
1338
+
"type": "number",
1339
+
"minimum": 0
1340
+
},
1341
+
"maxRequests": {
1342
+
"description": "Specify the maximum number of requests that should occur at a split points (when on the limit bigger chunks are preferred)",
1343
+
"type": "number",
1344
+
"minimum": 0
1345
+
}
1346
+
}
1347
+
}
1348
+
]
1329
1349
},
1330
1350
"initialCommonsChunks": {
1331
1351
"description": "Automatically deduplicate modules in initial chunks by creating additional initial-loaded shared chunks (These chunks need to be added to the HTML)",
1332
-
"type": "boolean"
1352
+
"oneOf": [
1353
+
{
1354
+
"type": "boolean"
1355
+
},
1356
+
{
1357
+
"type": "object",
1358
+
"additionalProperties": false,
1359
+
"properties": {
1360
+
"minSize": {
1361
+
"description": "Specify the minimum size of commons chunks at which they are created (when on the limit bigger chunks are preferred)",
1362
+
"type": "number",
1363
+
"minimum": 0
1364
+
},
1365
+
"maxRequests": {
1366
+
"description": "Specify the maximum number of requests that should occur at startup",
1367
+
"type": "number",
1368
+
"minimum": 0
1369
+
}
1370
+
}
1371
+
}
1372
+
]
1333
1373
},
1334
1374
"initialVendorsChunk": {
1335
1375
"description": "Automatically extract vendor modules (inside of node_modules) into separate chunk assuming they change less often ",
0 commit comments