Files
ShackMaster/web/vite.config.js
2026-04-04 12:52:08 +02:00

25 lines
458 B
JavaScript

import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
export default defineConfig({
plugins: [svelte()],
build: {
outDir: 'dist',
rollupOptions: {
input: {
main: 'index.html',
popup: 'popup.html',
}
}
},
server: {
port: 5173,
proxy: {
'/api': 'http://localhost:8081',
'/ws': {
target: 'ws://localhost:8081',
ws: true
}
}
}
})