33 lines
798 B
TypeScript
33 lines
798 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.100:6573/",
|
|
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'
|
|
}),
|
|
],
|
|
})
|