mirror of https://github.com/webpack/webpack.git
update progress more often for small numbers
This commit is contained in:
parent
b6ce40aded
commit
85b341d1ec
|
|
@ -267,17 +267,19 @@ class ProgressPlugin {
|
|||
|
||||
const factorizeAdd = () => {
|
||||
dependenciesCount++;
|
||||
if (dependenciesCount % 100 === 0) updateThrottled();
|
||||
if (dependenciesCount < 50 || dependenciesCount % 100 === 0)
|
||||
updateThrottled();
|
||||
};
|
||||
|
||||
const factorizeDone = () => {
|
||||
doneDependencies++;
|
||||
if (doneDependencies % 100 === 0) updateThrottled();
|
||||
if (doneDependencies < 50 || doneDependencies % 100 === 0)
|
||||
updateThrottled();
|
||||
};
|
||||
|
||||
const moduleAdd = () => {
|
||||
modulesCount++;
|
||||
if (modulesCount % 100 === 0) updateThrottled();
|
||||
if (modulesCount < 50 || modulesCount % 100 === 0) updateThrottled();
|
||||
};
|
||||
|
||||
// only used when showActiveModules is set
|
||||
|
|
@ -292,7 +294,7 @@ class ProgressPlugin {
|
|||
|
||||
const entryAdd = (entry, options) => {
|
||||
entriesCount++;
|
||||
if (entriesCount % 10 === 0) updateThrottled();
|
||||
if (entriesCount < 5 || entriesCount % 10 === 0) updateThrottled();
|
||||
};
|
||||
|
||||
const moduleDone = module => {
|
||||
|
|
@ -311,7 +313,7 @@ class ProgressPlugin {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (doneModules % 100 === 0) updateThrottled();
|
||||
if (doneModules < 50 || doneModules % 100 === 0) updateThrottled();
|
||||
};
|
||||
|
||||
const entryDone = (entry, options) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue