clear the console after a reload
parent
5ac696e629
commit
a6760b1ba4
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
Reference in New Issue