import Vue from 'vue' import VueRouter from 'vue-router' import Vuex from 'vuex' import Vuetify from 'vuetify' import { sync } from 'vuex-router-sync' import 'vuetify/dist/vuetify.min.css' // Ensure you are using css-loader import AppComponent from './App.vue' import { createRouter } from './router' import { createStore } from './store' function initVue() { Vue.use(VueRouter) Vue.use(Vuex) Vue.use(Vuetify) } function createApp() { const router = createRouter() const store = createStore() sync(store, router) const app = new Vue({ router, store, render(h) { return h(AppComponent) } }) return { app, router, store } } initVue() export { createApp }