-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathvite.config.js
47 lines (46 loc) · 1.13 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
import vue from "@vitejs/plugin-vue2"
import autoprefixer from "autoprefixer"
import { fileURLToPath, URL } from "node:url"
export default {
plugins: [vue()],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "src/common/global.scss"; @import "src/common/style.scss";`,
},
},
postcss: {
plugins: [
autoprefixer({}) // add options if needed
],
}
},
server: {
port: 3000,
strictPort: true,
proxy: {
"/collection": {
target: process.env.ENDURO_API_ADDRESS || "http://127.0.0.1:9000",
changeOrigin: true,
},
"^/collection/monitor": {
target: process.env.ENDURO_API_ADDRESS || "http://127.0.0.1:9000",
changeOrigin: false,
ws: true,
},
"/pipeline": {
target: process.env.ENDURO_API_ADDRESS || "http://127.0.0.1:9000",
changeOrigin: true,
},
"/batch": {
target: process.env.ENDURO_API_ADDRESS || "http://127.0.0.1:9000",
changeOrigin: true,
},
},
},
}