-
Notifications
You must be signed in to change notification settings - Fork 47
/
vite.config.js
47 lines (45 loc) · 1.58 KB
/
vite.config.js
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
41
42
43
44
45
46
47
/* eslint-disable no-undef */
import { fileURLToPath, URL } from "url";
import { resolve } from "path";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";
export default defineConfig({
plugins: [vue({
template: {
compilerOptions: {
// ski pega-embed elements
isCustomElement: (tag) => tag.includes('pega-embed') || tag.includes('pega-mashup')
}
}
}), vueJsx()],
build: {
outDir: resolve(__dirname, "docs"),
rollupOptions: {
input: {
auto: resolve(__dirname, "auto/index.html"),
commercial_bank: resolve(__dirname, "commercial_bank/index.html"),
comms: resolve(__dirname, "comms/index.html"),
gov: resolve(__dirname, "gov/index.html"),
health_care: resolve(__dirname, "health_care/index.html"),
health_payer: resolve(__dirname, "health_payer/index.html"),
health_pharma: resolve(__dirname, "health_pharma/index.html"),
health_provider: resolve(__dirname, "health_provider/index.html"),
insurance: resolve(__dirname, "insurance/index.html"),
manufacturing: resolve(__dirname, "manufacturing/index.html"),
retail_bank: resolve(__dirname, "retail_bank/index.html"),
wealth: resolve(__dirname, "wealth/index.html"),
travel: resolve(__dirname, "travel/index.html"),
energy: resolve(__dirname, "energy/index.html")
},
},
},
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
e2e: {
baseUrl: 'http://localhost:8080'
}
});