mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
feat: sdk migration in progress
This commit is contained in:
31
ui/vite.config.ts
Normal file
31
ui/vite.config.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import path from "path"
|
||||
import tailwindcss from "@tailwindcss/vite"
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react(), tailwindcss()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
}
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
proxy: {
|
||||
"/api": "http://localhost:8080",
|
||||
"/swagger": "http://localhost:8080",
|
||||
},
|
||||
allowedHosts: ['.getexposed.io']
|
||||
},
|
||||
build: {
|
||||
chunkSizeWarningLimit: 1000,
|
||||
outDir: "../internal/web/dist",
|
||||
emptyOutDir: true,
|
||||
sourcemap: true,
|
||||
cssMinify: "lightningcss",
|
||||
rollupOptions: { output: { manualChunks: { react: ["react","react-dom","react-router-dom"] } } }
|
||||
},
|
||||
esbuild: { legalComments: "none" }
|
||||
})
|
||||
Reference in New Issue
Block a user