keycloak-scim/js/apps/admin-ui/vite.config.ts

35 lines
797 B
TypeScript
Raw Normal View History

2022-07-07 05:23:54 +00:00
import { defineConfig } from "vitest/config";
2023-02-14 15:57:58 +00:00
import react from "@vitejs/plugin-react-swc";
import { checker } from "vite-plugin-checker";
2022-07-07 05:23:54 +00:00
// https://vitejs.dev/config/
export default defineConfig({
2022-08-02 12:11:38 +00:00
base: "",
server: {
origin: "http://localhost:5174",
port: 5174,
2022-08-02 12:11:38 +00:00
},
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 })],
2022-07-07 05:23:54 +00:00
test: {
watch: false,
environment: "jsdom",
server: {
deps: {
inline: [/@patternfly\/.*/],
},
},
2022-07-07 05:23:54 +00:00
},
});