|
|
@ -5,9 +5,13 @@ import { ElementPlusResolver } from 'unplugin-vue-components/resolvers' |
|
|
|
import { defineConfig } from 'vite' |
|
|
|
import viteCompression from 'vite-plugin-compression' |
|
|
|
import eslintPlugin from 'vite-plugin-eslint' |
|
|
|
import packageJson from './package.json' |
|
|
|
|
|
|
|
const Timestamp = new Date().getTime() |
|
|
|
export default defineConfig({ |
|
|
|
define: { |
|
|
|
__APP_VERSION__: JSON.stringify(packageJson.version), |
|
|
|
}, |
|
|
|
base: './', |
|
|
|
envPrefix: 'FT_', |
|
|
|
esbuild: { |
|
|
@ -80,8 +84,8 @@ export default defineConfig({ |
|
|
|
host: '0.0.0.0', |
|
|
|
proxy: { |
|
|
|
'/api': { |
|
|
|
// target: 'http://192.168.1.199:8080',
|
|
|
|
target: 'http://192.168.1.200:8080', |
|
|
|
target: 'http://192.168.1.199:8080', |
|
|
|
// target: 'http://192.168.1.200:8080',
|
|
|
|
// secure: false,
|
|
|
|
changeOrigin: true, // 是否跨域
|
|
|
|
rewrite: path => path.replace(/^\/api/, 'api'), |
|
|
|