24 lines
481 B
TypeScript
24 lines
481 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import svgr from "vite-plugin-svgr"
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
build: {
|
|
chunkSizeWarningLimit: 2000
|
|
},
|
|
plugins: [react(),svgr()],
|
|
server: {
|
|
proxy: {
|
|
'/resources': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: false,
|
|
},
|
|
'/var': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: false,
|
|
},
|
|
}
|
|
}
|
|
})
|