Skip to content

Commit

Permalink
fix: preserve start time and stats until next compile
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 1, 2018
1 parent 20e78c1 commit c93de65
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,10 @@ export default class WebpackBarPlugin extends webpack.ProgressPlugin {

if (!wasRunning && isRunning) {
// Started
delete this.state.stats;
this.state.start = process.hrtime();
this.callReporters('compiling');
} else if (wasRunning && !isRunning) {
// Finished
delete this.state.start;
this.callReporters('compiled');
}

Expand Down

0 comments on commit c93de65

Please sign in to comment.