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-17_http-01-starting.../src/main.js

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