chore(web): update vite

This commit is contained in:
Luke
2023-11-18 16:20:38 +01:00
parent 241fb2107b
commit e4c4db04ab
5 changed files with 448 additions and 141 deletions

19
web/vite.config.mjs Normal file
View File

@@ -0,0 +1,19 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import * as path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: './',
server: {
port: 3000,
},
build: {
outDir: 'build',
target: 'esnext',
},
esbuild: {
logOverride: { 'this-is-undefined-in-esm': 'silent' },
},
});