ext-apps/examples/simple-host/vite.config.ts
2025-12-01 21:57:46 +00:00

24 lines
588 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig(({ mode }) => {
const isDevelopment = mode === "development";
return {
plugins: [react()],
build: {
sourcemap: isDevelopment ? "inline" : undefined,
cssMinify: !isDevelopment,
minify: !isDevelopment,
rollupOptions: {
input: [
"index.html",
"example-host-vanilla.html",
"example-host-react.html",
"sandbox.html",
],
},
outDir: `dist`,
emptyOutDir: false,
},
};
});