1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import { defineConfig } from 'vite'
- import vue from '@vitejs/plugin-vue'
- import {resolve} from "path";
- // https://vitejs.dev/config/
- export default defineConfig({
- plugins: [vue()],
- base: '/',
- resolve: {
- alias: {
- '@': resolve(__dirname, 'src'),
- },
- },
- server: {
- port: 6886,
- // open: true,
- https: false,
- base: './',
- host: '0.0.0.0',
- strictPort: false,
- proxy: {
- '/api': {
- // target: 'http://localhost:8080/',
- target: 'http://120.25.74.229:8000/',
- // target: 'http://192.168.1.110:8080/',
- changeOrigin: true,
- rewrite: path => {
- return path.replace(/^\/api/, '')
- }
- },
- }
- },
- build: {
- outDir: "social-management-screen",
- },
- publicDir: 'src/out',
- optimizeDeps: {
- include: []
- }
- })
|