This repository has been archived on 2021-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
vuejs_course/2021-03-27_routing-01-starting-setup/src/main.js

16 lines
282 B
JavaScript
Raw Normal View History

2021-03-27 20:34:03 +01:00
import { createApp } from 'vue';
import App from './App.vue';
2021-03-27 20:36:12 +01:00
const app = createApp(App);
2021-03-27 20:34:03 +01:00
app.mount('#app');
2021-03-27 20:36:12 +01:00
if (module.hot) {
module.hot.accept(); // already had this init code
module.hot.addStatusHandler(status => {
if (status === 'prepare') console.clear();
});
}