@@ -90,7 +90,6 @@ export default class WebpackBarPlugin extends webpack.ProgressPlugin {
90
90
if ( this . options . minimal ) {
91
91
this . options . stream . write ( `Compiling ${ this . options . name } \n` ) ;
92
92
}
93
- delete this . state . time ;
94
93
} else if ( wasRunning && ! isRunning ) {
95
94
// Finished
96
95
const time = process . hrtime ( this . state . start ) ;
@@ -131,14 +130,14 @@ export default class WebpackBarPlugin extends webpack.ProgressPlugin {
131
130
return ;
132
131
}
133
132
134
- const stateLines = _ . sortBy ( Object . keys ( sharedState ) , ( n ) => n )
135
- . filter ( ( s ) => sharedState [ s ] . isRunning || sharedState [ s ] . start )
136
- . map ( ( name ) => {
133
+ const stateLines = _ . sortBy ( Object . keys ( sharedState ) , ( n ) => n ) . map (
134
+ ( name ) => {
137
135
const state = sharedState [ name ] ;
138
136
const color = colorize ( state . color ) ;
139
137
140
138
if ( ! state . isRunning ) {
141
- return `${ [ chalk . grey ( BULLET ) , name ] . join ( ' ' ) } ` ;
139
+ const color2 = state . progress === 100 ? color : chalk . grey ;
140
+ return color2 ( `${ BULLET } ${ name } \n` ) ;
142
141
}
143
142
144
143
return `${ [
@@ -150,10 +149,10 @@ export default class WebpackBarPlugin extends webpack.ProgressPlugin {
150
149
chalk . grey ( ( state . details && state . details [ 0 ] ) || '' ) ,
151
150
chalk . grey ( ( state . details && state . details [ 1 ] ) || '' ) ,
152
151
] . join ( ' ' ) } \n ${ state . request ? formatRequest ( state . request ) : '' } \n`;
153
- } )
154
- . filter ( Boolean ) ;
152
+ }
153
+ ) ;
155
154
156
- if ( stateLines . length ) {
155
+ if ( hasRunning ( ) ) {
157
156
const title = chalk . underline . blue ( 'Compiling' ) ;
158
157
const log = `\n${ title } \n\n${ stateLines . join ( '\n' ) } ` ;
159
158
this . logUpdate ( log ) ;
0 commit comments