canvas/packages/admin/vite.config.ts

22 lines
411 B
TypeScript
Raw Normal View History

2024-03-02 18:18:25 -08:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
2024-03-02 18:06:44 -08:00
// https://vitejs.dev/config/
export default defineConfig({
2024-03-02 18:18:25 -08:00
root: "src",
envDir: "..",
2024-03-11 19:59:47 -07:00
base: process.env.APP_ROOT,
2024-03-02 18:18:25 -08:00
build: {
outDir: "../dist",
2024-03-11 19:59:47 -07:00
emptyOutDir: true,
2024-03-02 18:18:25 -08:00
},
plugins: [
react({
include: "**/*.{jsx,tsx}",
}),
],
2024-05-28 20:02:00 -07:00
define: {
__APP_ROOT__: JSON.stringify(process.env.APP_ROOT),
},
2024-03-02 18:18:25 -08:00
});