mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-22 15:34:29 +01:00
frontend complete migration from parcel to vite for much better production builds
This commit is contained in:
17
frontend/index.ts
Normal file
17
frontend/index.ts
Normal 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')
|
||||
Reference in New Issue
Block a user