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";
|
2022-11-18 16:13:39 +00:00
|
|
|
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: {
|
2024-06-12 09:55:14 +00:00
|
|
|
origin: "http://localhost:5174",
|
|
|
|
port: 5174,
|
2022-08-02 12:11:38 +00:00
|
|
|
},
|
2022-10-17 12:46:07 +00:00
|
|
|
build: {
|
2024-06-19 12:36:04 +00:00
|
|
|
outDir: "target/classes/theme/keycloak.v2/admin/resources",
|
2022-12-15 11:46:16 +00:00
|
|
|
sourcemap: true,
|
2023-10-09 15:59:32 +00:00
|
|
|
target: "esnext",
|
|
|
|
modulePreload: false,
|
|
|
|
cssMinify: "lightningcss",
|
2024-06-12 09:55:14 +00:00
|
|
|
manifest: true,
|
2023-11-20 16:34:03 +00:00
|
|
|
rollupOptions: {
|
2024-06-12 09:55:14 +00:00
|
|
|
input: "src/main.tsx",
|
2023-11-20 16:34:03 +00:00
|
|
|
external: ["react", "react/jsx-runtime", "react-dom"],
|
|
|
|
},
|
2022-10-17 12:46:07 +00:00
|
|
|
},
|
2023-10-09 15:59:32 +00:00
|
|
|
plugins: [react(), checker({ typescript: true })],
|
2022-07-07 05:23:54 +00:00
|
|
|
test: {
|
|
|
|
watch: false,
|
2024-05-06 11:21:32 +00:00
|
|
|
environment: "jsdom",
|
|
|
|
server: {
|
|
|
|
deps: {
|
|
|
|
inline: [/@patternfly\/.*/],
|
|
|
|
},
|
|
|
|
},
|
2022-07-07 05:23:54 +00:00
|
|
|
},
|
|
|
|
});
|