keycloak-scim/js/apps/admin-ui/vite.config.ts
Jon Koops c7361ccf6e
Run the Vite dev server through the Keycloak server (#27311)
Closes #19750
Closes #28643
Closes #30115

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-06-12 11:55:14 +02:00

33 lines
733 B
TypeScript

import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react-swc";
import { checker } from "vite-plugin-checker";
// https://vitejs.dev/config/
export default defineConfig({
base: "",
server: {
origin: "http://localhost:5174",
port: 5174,
},
build: {
sourcemap: true,
target: "esnext",
modulePreload: false,
cssMinify: "lightningcss",
manifest: true,
rollupOptions: {
input: "src/main.tsx",
external: ["react", "react/jsx-runtime", "react-dom"],
},
},
plugins: [react(), checker({ typescript: true })],
test: {
watch: false,
environment: "jsdom",
server: {
deps: {
inline: [/@patternfly\/.*/],
},
},
},
});