sk-matrix-project/frontend/matrix-middle-service-web/vite.config.ts

34 lines
855 B
TypeScript
Raw Normal View History

import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import * as path from "path";
2023-02-25 22:45:15 +08:00
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"),
}
},
2023-02-25 22:45:15 +08:00
plugins: [
vue({
template: {transformAssetUrls},
}),
quasar({
sassVariables: 'src/quasar-variables.sass'
}),
],
})