sk-matrix-project/frontend/matrix-middle-service-web/vite.config.ts
Shikong aff0b6ca98 支持仅显示 高精度数据
当两点间隔大于5分钟时 视为两条不同的路径 以不同样式显示
2023-05-14 01:21:39 +08:00

34 lines
855 B
TypeScript

import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import * as path from "path";
import {quasar, transformAssetUrls} from "@quasar/vite-plugin";
// https://vitejs.dev/config/
export default defineConfig({
base: "./",
server: {
strictPort: true,
port: 7868,
proxy:{
"^/api/.*":{
// target: "http://10.10.10.20:45680/",
target: "http://10.10.10.200:45680/",
rewrite: (path) => path.replace(/^\/api\//, ''),
},
}
},
resolve: {
alias: {
"matrix-middle-service-web/src": path.resolve(__dirname, "src"),
}
},
plugins: [
vue({
template: {transformAssetUrls},
}),
quasar({
sassVariables: 'src/quasar-variables.sass'
}),
],
})