-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
58 lines (54 loc) · 1.35 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { defineConfig } from 'vite';
import { resolve } from 'path';
import Inspect from 'vite-plugin-inspect';
import vue from '@vitejs/plugin-vue';
import Pages from 'vite-plugin-pages';
import { mdiIcons } from './vite-plugins/mdiIcons';
import Components from 'unplugin-vue-components/vite';
import { vuetifyResolver } from './vite-plugins/vuetify-resolver';
import serverCreator from './vite-plugins/server-router';
export default defineConfig({
server: {
// open: "/verwaltung/index.html",
},
define: {
__API_BASE_URL__: JSON.stringify('http://localhost:8080'),
__BUILD_ID__: JSON.stringify(
new Date().toISOString().split('T')[0].replaceAll('-', '.') +
'.' +
Math.floor((new Date().getTime() % (24 * 60 * 60 * 1000)) / 1000)
)
// __VUE_OPTIONS_API__: "false",
},
plugins: [
serverCreator(),
Inspect(),
vue(),
Pages({
dirs: 'verwaltung/pages'
}),
Components({
dts: false,
dirs: [],
resolvers: [vuetifyResolver()]
}),
mdiIcons()
],
build: {
rollupOptions: {
input: {
index: resolve(__dirname, 'verwaltung/index.html')
},
output: {
manualChunks: undefined
}
}
// minify: false,
},
resolve: {
alias: {
'@': resolve(__dirname, 'verwaltung'),
'@types': resolve(__dirname, 'types')
}
}
});