Hideout/vite.config.ts

21 lines
529 B
TypeScript
Raw Normal View History

2023-04-13 06:56:25 +00:00
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import suidPlugin from "@suid/vite-plugin";
export default defineConfig({
plugins: [solidPlugin(),suidPlugin()],
server: {
port: 3000,
proxy: {
'/api': 'http://localhost:8080',
'/login': 'http://localhost:8080',
'/auth-check': 'http://localhost:8080',
2023-04-13 06:56:25 +00:00
}
},
root: './src/main/web',
build: {
target: 'esnext',
outDir: '../resources/static',
},
});