bill-fontend/config/vite.config.dev.ts

33 lines
710 B
TypeScript
Raw Normal View History

2023-11-16 17:11:49 +08:00
import { mergeConfig } from 'vite';
import eslint from 'vite-plugin-eslint';
2024-01-17 07:46:08 +08:00
import * as path from 'path';
2023-11-16 17:11:49 +08:00
import baseConfig from './vite.config.base';
export default mergeConfig(
{
mode: 'development',
server: {
open: true,
fs: {
strict: true,
},
2024-01-17 07:46:08 +08:00
proxy: {
2023-11-16 17:11:49 +08:00
'/api': {
2024-01-17 07:46:08 +08:00
target: 'http://59.110.238.182:8081',
// target: 'http://4.246.149.244:8081',
// target: 'http://localhost:5173',
2023-11-16 17:11:49 +08:00
changeOrigin: true,
2024-01-17 07:46:08 +08:00
},
2023-11-16 17:11:49 +08:00
},
},
plugins: [
eslint({
cache: false,
include: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.vue'],
exclude: ['node_modules'],
}),
],
},
baseConfig
);