23 lines
488 B
JavaScript
23 lines
488 B
JavaScript
'use strict';
|
|
|
|
import { createApp } from 'vue';
|
|
|
|
import BaseCard from './components/UI/BaseCard.vue';
|
|
import BaseButton from './components/UI/BaseButton.vue';
|
|
import App from './App.vue';
|
|
|
|
const app = createApp(App);
|
|
|
|
app.component('base-card', BaseCard);
|
|
app.component('base-button', BaseButton);
|
|
|
|
app.mount('#app');
|
|
|
|
if (module.hot) {
|
|
module.hot.accept(); // already had this init code
|
|
|
|
module.hot.addStatusHandler(status => {
|
|
if (status === 'prepare') console.clear();
|
|
});
|
|
}
|