File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ export default class WebpackBarPlugin extends ProgressPlugin {
38
38
this . options = Object . assign ( { } , DEFAULTS , options ) ;
39
39
this . name = startCase ( options . name ) ;
40
40
41
+ // Assign a better handler to base ProgressPlugin
42
+ this . handler = ( percent , message , ...details ) => {
43
+ this . updateProgress ( percent , message , details ) ;
44
+ } ;
45
+
41
46
// Keep our state in shared ojbect
42
47
this . states = globalStates ;
43
48
if ( ! this . states [ this . name ] ) {
@@ -153,10 +158,6 @@ export default class WebpackBarPlugin extends ProgressPlugin {
153
158
} ) ;
154
159
}
155
160
156
- handler ( percent , message , ...details ) {
157
- this . updateProgress ( percent , message , details ) ;
158
- }
159
-
160
161
updateProgress ( percent = 0 , message = '' , details = [ ] ) {
161
162
const progress = Math . floor ( percent * 100 ) ;
162
163
You can’t perform that action at this time.
0 commit comments