Merge pull request #9736 from vankop/limit-chunk-count-plugin

fix: Limit chunk count plugin
This commit is contained in:
Tobias Koppers 2019-10-21 09:02:49 +02:00 committed by GitHub
commit b5e8915b14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 11 deletions

View File

@ -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;
}

View File

@ -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"

View File

@ -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"]
}