Refactor(ES6): Lint fixes
This commit is contained in:
parent
2a76e5ae6b
commit
a9ae64a6c9
|
@ -5,6 +5,6 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
class OptionsApply {
|
class OptionsApply {
|
||||||
process(options, compiler) { }
|
process(options, compiler) {}
|
||||||
}
|
}
|
||||||
module.exports = OptionsApply;
|
module.exports = OptionsApply;
|
||||||
|
|
|
@ -25,8 +25,8 @@ class ProgressPlugin {
|
||||||
compiler.compilers.forEach(function(compiler, idx) {
|
compiler.compilers.forEach(function(compiler, idx) {
|
||||||
compiler.apply(new ProgressPlugin((p, msg) => {
|
compiler.apply(new ProgressPlugin((p, msg) => {
|
||||||
states[idx] = Array.prototype.slice.apply(arguments);
|
states[idx] = Array.prototype.slice.apply(arguments);
|
||||||
handler(...[
|
handler.apply(null, [
|
||||||
states.map(state => state && state[0] || 0).reduce((a, b) => a + b) / states.length,
|
states.map(state => state && state[0] || 0).reduce((a, b) => a + b) / states.length,
|
||||||
`[${idx}] ${msg}`
|
`[${idx}] ${msg}`
|
||||||
].concat(Array.prototype.slice.call(arguments, 2)));
|
].concat(Array.prototype.slice.call(arguments, 2)));
|
||||||
}));
|
}));
|
||||||
|
@ -42,7 +42,7 @@ class ProgressPlugin {
|
||||||
0.1 + (doneModules / Math.max(lastModulesCount, moduleCount)) * 0.6,
|
0.1 + (doneModules / Math.max(lastModulesCount, moduleCount)) * 0.6,
|
||||||
"building modules",
|
"building modules",
|
||||||
`${doneModules}/${moduleCount} modules`,
|
`${doneModules}/${moduleCount} modules`,
|
||||||
`${activeModules.length} active`,
|
`${activeModules.length} active`,
|
||||||
activeModules[activeModules.length - 1]
|
activeModules[activeModules.length - 1]
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue