Files
bamort/frontend/vite.config.js
Bardioc26 bb9ef4f77e Added Desktop app deployment (#39)
Created a desktop app using Walis framework.
This embeds the frontend and backend into one binary that shows itself on a desktop
2026-02-24 22:10:05 +01:00

30 lines
768 B
JavaScript

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))
},
},
server: {
//port: 8080,
host: ['bamort.trokan.de','192.168.0.48', 'localhost','terra.local'],
},
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,
},
})