clear the console after a reload

This commit is contained in:
Andreas Zweili 2021-03-02 22:21:36 +01:00
parent 5ac696e629
commit a6760b1ba4
1 changed files with 8 additions and 0 deletions

View File

@ -3,3 +3,11 @@ import { createApp } from 'vue';
import App from './App.vue';
createApp(App).mount('#app');
if (module.hot) {
module.hot.accept(); // already had this init code
module.hot.addStatusHandler(status => {
if (status === 'prepare') console.clear();
});
}