27 lines
697 B
TypeScript
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'
|
|
}
|
|
}
|
|
})
|