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' }), ], })