Files

30 lines
650 B
TypeScript
Raw Permalink Normal View History

2025-09-25 10:11:41 -07:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
2025-09-25 16:06:52 -07:00
import path from "path";
2025-09-26 14:32:16 -07:00
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
2025-09-25 10:11:41 -07:00
export default defineConfig(({}) => {
2026-03-04 18:24:06 +00:00
let version = "3.5.0";
2025-06-24 16:31:18 +08:00
2025-06-24 15:40:50 +08:00
return {
base: "/",
plugins: [svgr(), react()],
2025-12-22 12:36:29 -05:00
server: {
host: true,
},
2025-09-25 16:06:52 -07:00
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
2025-09-08 20:39:45 -07:00
optimizeDeps: {
2025-06-24 15:40:50 +08:00
include: ["@mui/material/Tooltip", "@emotion/styled"],
},
define: {
__APP_VERSION__: JSON.stringify(version),
},
};
});