sk-matrix-project/frontend/matrix-middle-service-web/vite.config.ts
Shikong a27006572a 简单封装 基于 quasar组件的 日期选择器
引入 moment
引入高德地图
引入axios
2023-03-16 15:59:01 +08:00

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