26 lines
782 B
JavaScript
26 lines
782 B
JavaScript
|
|
import react from "@vitejs/plugin-react";
|
||
|
|
import { defineConfig } from "vite";
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [react()],
|
||
|
|
server: {
|
||
|
|
port: 5173,
|
||
|
|
proxy: {
|
||
|
|
// Local development against `uvicorn app.main:app` on :8000
|
||
|
|
"/api": "http://localhost:8000",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
build: {
|
||
|
|
chunkSizeWarningLimit: 1200,
|
||
|
|
rollupOptions: {
|
||
|
|
output: {
|
||
|
|
manualChunks: {
|
||
|
|
mui: ["@mui/material", "@mui/icons-material"],
|
||
|
|
charts: ["recharts"],
|
||
|
|
editor: ["@tiptap/react", "@tiptap/starter-kit", "@tiptap/extension-link"],
|
||
|
|
msal: ["@azure/msal-browser", "@azure/msal-react"],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
});
|