-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.mjs
40 lines (39 loc) · 973 Bytes
/
vite.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
import { resolve } from "path";
export default defineConfig({
server: {
watch: {
ignored: ["**/node_modules/**", "Immunoinformatics/**"],
},
port: 1234,
proxy: {
"/immuno": {
target: "http://127.0.0.1:3123/plugins/pages/immuno.immuno/",
changeOrigin: true,
},
"/results_api": {
target: "http://127.0.0.1:3123/plugins/pages/immuno.results/",
changeOrigin: true,
},
},
},
build: {
outDir: "Immunoinformatics/Pages",
emptyOutDir: false,
rollupOptions: {
input: {
index: resolve(__dirname, "index.html"),
results: resolve(__dirname, "results.html"),
},
},
},
base: "./",
plugins: [react(), tsconfigPaths()],
test: {
globals: true,
environment: "jsdom",
setupFiles: "./vitest.setup.mjs",
},
});