frontend complete migration from parcel to vite for much better production builds

This commit is contained in:
Yeicor
2024-03-03 17:54:53 +01:00
parent 0fad65d7b2
commit da0dcea44a
30 changed files with 1142 additions and 1651 deletions

17
frontend/index.ts Normal file
View File

@@ -0,0 +1,17 @@
import {createApp} from 'vue'
import App from './App.vue'
import {createVuetify} from 'vuetify';
import * as directives from 'vuetify/lib/directives/index.mjs';
import 'vuetify/dist/vuetify.css';
const vuetify = createVuetify({
directives,
theme: {
defaultTheme: window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light',
}
});
const app = createApp(App)
app.use(vuetify)
app.mount('body')