12345678910111213141516171819202122232425262728293031323334 |
- import { defineConfig } from 'vite'
- import path from "path"
- import react from '@vitejs/plugin-react'
-
- // https://vitejs.dev/config/
- export default defineConfig({
- server: {
- port: 3001,
- host: '0.0.0.0',
- proxy: {
- '/api': {
- target: 'http://127.0.0.1:9087',
- // target: 'http://t.njyz.tech',
- changeOrigin: true,
- },
- }
- },
- plugins: [
- react(),
- ],
- resolve: {
- alias: [
- { find: '@', replacement: path.resolve(__dirname, 'src') },
- ],
- },
- css: {
- preprocessorOptions: {
- less: {
- // modifyVars: { 'primary-color': '#13c2c2' },
- javascriptEnabled: true,
- },
- },
- },
- })
|