From 639ce448bdaef535d6337bf8968c06cfd2a09b79 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 5 Jun 2024 15:14:22 +1000 Subject: [PATCH] add vite stub --- vite.config.ts.react | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 vite.config.ts.react diff --git a/vite.config.ts.react b/vite.config.ts.react new file mode 100644 index 00000000000..b33ded98fa4 --- /dev/null +++ b/vite.config.ts.react @@ -0,0 +1,21 @@ +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react'; +import tsconfigPaths from 'vite-tsconfig-paths'; + +export default defineConfig({ + plugins: [tsconfigPaths(), react()], + server: { + port: 3000, + }, + build: { + assetsDir: '', + chunkSizeWarningLimit: 1500, + rollupOptions: { + output: { + // This will output a single bundle file + entryFileNames: 'bundle.js', + chunkFileNames: 'bundle.js' + } + }, + }, +});