keycloak-scim/js/apps/admin-ui/vite.config.ts
Jon Koops 2b35b4430c
Output Vite build directly into Maven target directory (#30490)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-06-19 14:36:04 +02:00

34 lines
797 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: {
outDir: "target/classes/theme/keycloak.v2/admin/resources",
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\/.*/],
},
},
},
});