moving to vite as build system 🎉

This commit is contained in:
weakmap@gmail.com
2022-12-19 21:44:10 +01:00
parent e155e992d4
commit 4785cf797d
39 changed files with 289 additions and 1821 deletions

23
vite.config.js Normal file
View File

@@ -0,0 +1,23 @@
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
base: '',
build: {
chunkSizeWarningLimit: 9999999,
outDir: './ui/public',
},
plugins: [react()],
server: {
proxy: {
'/api': {
target: {
host: '0.0.0.0',
protocol: 'http:',
port: 9998,
},
},
},
},
});