2023-02-25 21:58:48 +08:00
|
|
|
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";
|
2023-02-25 21:58:48 +08:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
base: "./",
|
|
|
|
server: {
|
|
|
|
strictPort: true,
|
2023-03-16 15:59:01 +08:00
|
|
|
port: 7868,
|
|
|
|
proxy:{
|
|
|
|
"^/api/.*":{
|
2023-05-14 01:21:39 +08:00
|
|
|
// target: "http://10.10.10.20:45680/",
|
|
|
|
target: "http://10.10.10.200:45680/",
|
2023-03-16 15:59:01 +08:00
|
|
|
rewrite: (path) => path.replace(/^\/api\//, ''),
|
|
|
|
},
|
|
|
|
}
|
2023-02-25 21:58:48 +08:00
|
|
|
},
|
|
|
|
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'
|
|
|
|
}),
|
|
|
|
],
|
2023-02-25 21:58:48 +08:00
|
|
|
})
|