File tree 2 files changed +20
-3
lines changed
packages/@vue/cli-service
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,22 @@ class DashboardPlugin {
79
79
}
80
80
}
81
81
82
- setTimeout ( ( ) => {
83
- ipc . disconnect ( 'vue-cli' )
84
- } , 4000 )
82
+ if ( sendMessage ) {
83
+ const ipcTimer = setTimeout ( ( ) => {
84
+ ipc . disconnect ( 'vue-cli' )
85
+ } , 15000 )
86
+
87
+ sendMessage ( {
88
+ webpackDashboardDone : true
89
+ } )
90
+
91
+ ipc . of [ 'vue-cli' ] . on ( 'message' , data => {
92
+ if ( data . webpackDashboardAck ) {
93
+ clearTimeout ( ipcTimer )
94
+ ipc . disconnect ( 'vue-cli' )
95
+ }
96
+ } )
97
+ }
85
98
}
86
99
87
100
apply ( compiler ) {
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ module.exports = api => {
16
16
for ( const data of message . webpackDashboardData . value ) {
17
17
setSharedData ( `${ type } -${ data . type } ` , data . value )
18
18
}
19
+ } else if ( message . webpackDashboardDone ) {
20
+ api . ipcSend ( {
21
+ webpackDashboardAck : true
22
+ } )
19
23
}
20
24
}
21
25
You can’t perform that action at this time.
0 commit comments