Merge pull request #9736 from vankop/limit-chunk-count-plugin
fix: Limit chunk count plugin
This commit is contained in:
commit
b5e8915b14
|
@ -16,9 +16,5 @@ export interface LimitChunkCountPluginOptions {
|
|||
/**
|
||||
* Limit the maximum number of chunks using a value greater greater than or equal to 1
|
||||
*/
|
||||
maxChunks?: number;
|
||||
/**
|
||||
* Set a minimum chunk size
|
||||
*/
|
||||
minChunkSize?: number;
|
||||
maxChunks: number;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ class LimitChunkCountPlugin {
|
|||
/**
|
||||
* @param {LimitChunkCountPluginOptions=} options options object
|
||||
*/
|
||||
constructor(options = {}) {
|
||||
constructor(options) {
|
||||
validateOptions(schema, options, {
|
||||
name: "Limit Chunk Count Plugin",
|
||||
baseDataPath: "options"
|
||||
|
|
|
@ -15,10 +15,7 @@
|
|||
"description": "Limit the maximum number of chunks using a value greater greater than or equal to 1",
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"minChunkSize": {
|
||||
"description": "Set a minimum chunk size",
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["maxChunks"]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue