fileserver/frontend/vite.config.ts

27 lines
697 B
TypeScript
Raw Normal View History

2024-08-28 19:11:04 +00:00
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',
2024-08-31 19:20:21 +00:00
port: 2345,
2024-08-28 19:11:04 +00:00
proxy: {
2024-08-31 19:20:21 +00:00
'/api': 'http://127.0.0.1:2121'
2024-08-28 19:11:04 +00:00
}
}
})