add the code for the logger
This commit is contained in:
parent
3e65e2d883
commit
fc63f9bd8c
|
@ -10,3 +10,11 @@ new Vue({
|
|||
store,
|
||||
render: h => h(App)
|
||||
})
|
||||
|
||||
if (module.hot) {
|
||||
module.hot.accept(); // already had this init code
|
||||
|
||||
module.hot.addStatusHandler(status => {
|
||||
if (status === 'prepare') console.clear();
|
||||
});
|
||||
}
|
||||
|
|
Reference in New Issue