You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log('%cHRM%c You are using Vue %c'+Vue.version,tagStyle,'color: #177D4F;','color: #177D4F; font-weight: bold;')
18
+
19
+
console.log('%cYou are currently in development mode. If the Hot-Module-Replacement system is enabled (`on` by default), the CSS will be injected to the page after the scripts are loaded. This may result in Flash Of Unstyled Contents. Those will not occur in production.',infoStyle)
20
+
21
+
console.log('%cMore information about the component compilation: https://github.com/meteor-vue/vue-meteor/tree/master/packages/vue-component',infoStyle)
22
+
23
+
console.log('%cDocumentation and Issues: https://github.com/meteor-vue/vue-meteor',infoStyle)
24
+
15
25
if(vueVersion===1){
16
26
VueHotReloadApi=VueHot1
17
27
}elseif(vueVersion===2){
18
28
VueHotReloadApi=VueHot2
29
+
Vue.config.productionTip=false
19
30
}
20
31
21
32
Vue.use(VueHotReloadApi)
@@ -42,14 +53,14 @@ Reload._reload = function (options) {
console.log(`[HMR] Client reload defered, will reload in ${_deferReload} ms`)
59
+
console.log(`%cHRM`,tagStyle,`Client reload defered, will reload in ${_deferReload} ms`)
49
60
}elseif(_suppressNextReload){
50
-
console.log(`[HMR] Client version changed, you may need to reload the page`)
61
+
console.log(`%cHRM%c ⥁ Client version changed, reload suppressed because of a recent HMR update. You may need to reload the page.`,tagStyle,'color: #F36E00;')
51
62
}else{
52
-
console.log(`[HMR] Reloading app...`)
63
+
console.log(`%cHRM`,tagStyle,`Reloading app...`)
53
64
_reload.call(Reload,options)
54
65
}
55
66
_suppressNextReload=false
@@ -70,7 +81,7 @@ if (ClientVersions) {
70
81
changed: checkNewVersionDocument,
71
82
})
72
83
}else{
73
-
console.log('[HMR] ClientVersions collection is not available, the app may full reload.')
84
+
console.warn('%cHRM',tagStyle,'ClientVersions collection is not available, the app may full reload.')
console.log('%cHRM%c Dev server URL: %c'+devUrl,tagStyle,'','font-weight: bold;')
100
+
101
+
console.log(`%cIf you have issues connecting to the dev server, set the 'HMR_URL' env variable to the URL of the dev server displayed in the meteor console.`,infoStyle)
89
102
90
103
// NOTE: Socket lib don't allow mix HTTP and HTTPS servers URLs on client!
91
104
let_socket=require('socket.io-client')(devUrl)
92
105
window.__dev_client__=_socket
93
106
94
107
_socket.on('connect',function(){
95
-
console.log('[HMR] Dev client connected')
108
+
console.log('%cHRM%c ⏺ Dev client connected',tagStyle,'color: #177D4F;')
96
109
})
97
110
_socket.on('disconnect',function(){
98
-
console.log('[HMR] Dev client disconnected')
111
+
console.log('%cHRM%c ⏺ Dev client disconnected',tagStyle,'color: #F36E00;')
0 commit comments