fileserver/frontend/vite.config.ts
Mutzi b9e97f6fbd
All checks were successful
/ Build the server (push) Successful in 2m52s
Rewrote the server in java
2024-08-31 22:00:50 +02:00

27 lines
697 B
TypeScript

import {defineConfig} from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import {viteSingleFile} from 'vite-plugin-singlefile';
import {createHtmlPlugin} from 'vite-plugin-html';
import purgeCss from 'vite-plugin-tailwind-purgecss';
import Icons from 'unplugin-icons/vite';
export default defineConfig({
plugins: [
svelte(),
Icons({ compiler: 'svelte' }),
purgeCss(),
viteSingleFile({removeViteModuleLoader: true}),
createHtmlPlugin({minify: true})
],
build: {
minify: false
},
server: {
host: '0.0.0.0',
port: 2345,
proxy: {
'/api': 'http://127.0.0.1:2121'
}
}
})