waveterm/vite.config.ts
Sylvia Crowe b9f6da57f9 feat: add basic directory navigation in preview
Note: this does not add backwards navigation and will break if
attempting to open certain types of files.
2024-05-29 00:00:36 -07:00

18 lines
432 B
TypeScript

import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
plugins: [react({}), tsconfigPaths()],
define: { "process.env": process.env },
publicDir: "public",
build: {
target: "es6",
rollupOptions: {
input: {
app: "public/index.html",
},
},
},
});