add the code for the logger

This commit is contained in:
Andreas Zweili 2021-03-20 15:08:55 +01:00
parent 3e65e2d883
commit fc63f9bd8c
1 changed files with 8 additions and 0 deletions

View File

@ -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();
});
}