racemash/src/main.ts

27 lines
407 B
TypeScript
Raw Normal View History

2023-05-23 08:19:09 +02:00
/**
* main.ts
*
* Bootstraps Vuetify and other plugins then mounts the App`
*/
// Components
import App from './App.vue';
2023-05-23 08:19:09 +02:00
// Composables
import { createApp } from 'vue';
2023-05-23 08:19:09 +02:00
// Plugins
import { registerPlugins } from '@/plugins';
2023-05-23 08:19:09 +02:00
const app = createApp(App);
2023-05-23 08:19:09 +02:00
registerPlugins(app);
2023-05-23 08:19:09 +02:00
2023-05-26 12:21:33 +02:00
app.config.errorHandler = (error) => {
if (import.meta.env.DEV) {
console.error(error);
}
};
app.mount('#app');