25 lines
571 B
JavaScript
25 lines
571 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
base: '/static/',
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': { target: 'http://localhost:8888', changeOrigin: true },
|
|
'/events': { target: 'http://localhost:8888', changeOrigin: true },
|
|
},
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(__dirname, 'index.html'),
|
|
binance: resolve(__dirname, 'binance.html'),
|
|
},
|
|
},
|
|
},
|
|
})
|