mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-04-26 19:06:48 -05:00
28 lines
618 B
TypeScript
28 lines
618 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import svgr from "vite-plugin-svgr";
|
|
import path from "path";
|
|
import { fileURLToPath } from "url";
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = path.dirname(__filename);
|
|
|
|
export default defineConfig(({}) => {
|
|
let version = "3.2.0";
|
|
|
|
return {
|
|
base: "/",
|
|
plugins: [svgr(), react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "src"),
|
|
},
|
|
},
|
|
optimizeDeps: {
|
|
include: ["@mui/material/Tooltip", "@emotion/styled"],
|
|
},
|
|
define: {
|
|
__APP_VERSION__: JSON.stringify(version),
|
|
},
|
|
};
|
|
});
|