2024-12-21 07:55:05 +01:00
|
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
|
|
|
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
|
import vueDevTools from 'vite-plugin-vue-devtools'
|
|
|
|
|
|
|
|
|
|
// https://vite.dev/config/
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [
|
|
|
|
|
vue(),
|
|
|
|
|
vueDevTools(),
|
|
|
|
|
],
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-01-18 20:59:35 +01:00
|
|
|
server: {
|
|
|
|
|
//port: 8080,
|
2025-08-30 17:55:20 +02:00
|
|
|
host: ['bamort.trokan.de','192.168.0.48', 'localhost','terra.local'],
|
2025-01-18 20:59:35 +01:00
|
|
|
},
|
2026-02-24 22:10:05 +01:00
|
|
|
build: {
|
|
|
|
|
// When DESKTOP_BUILD=1, output into the Wails embed path so `wails build`
|
|
|
|
|
// can embed the frontend directly into the desktop binary.
|
|
|
|
|
outDir: process.env.DESKTOP_BUILD ? '../desktop/frontend/dist' : 'dist',
|
|
|
|
|
//minify: false,
|
|
|
|
|
//sourcemap: true,
|
|
|
|
|
},
|
2024-12-21 07:55:05 +01:00
|
|
|
})
|