File tree 1 file changed +20
-14
lines changed
packages/@vue/cli-service/lib/webpack
1 file changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -141,22 +141,28 @@ class DashboardPlugin {
141
141
} )
142
142
}
143
143
144
+ let progressTime = Date . now ( )
145
+
144
146
compiler . apply (
145
147
new webpack . ProgressPlugin ( ( percent , msg ) => {
146
- handler ( [
147
- {
148
- type : 'status' ,
149
- value : 'Compiling'
150
- } ,
151
- {
152
- type : 'progress' ,
153
- value : percent
154
- } ,
155
- {
156
- type : 'operations' ,
157
- value : msg + getTimeMessage ( timer )
158
- }
159
- ] )
148
+ const time = Date . now ( )
149
+ if ( time - progressTime > 100 ) {
150
+ progressTime = time
151
+ handler ( [
152
+ {
153
+ type : 'status' ,
154
+ value : 'Compiling'
155
+ } ,
156
+ {
157
+ type : 'progress' ,
158
+ value : percent
159
+ } ,
160
+ {
161
+ type : 'operations' ,
162
+ value : msg + getTimeMessage ( timer )
163
+ }
164
+ ] )
165
+ }
160
166
} )
161
167
)
162
168
You can’t perform that action at this time.
0 commit comments