adding indexV2 to the build path

This commit is contained in:
Carter 2025-06-05 13:02:53 -06:00
parent 9c94585de0
commit a0bb90099c

View file

@ -2,6 +2,7 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tsconfigPaths from 'vite-tsconfig-paths'
import { VitePWA } from 'vite-plugin-pwa';
import * as path from 'path' // ✅ Import path module
// https://vitejs.dev/config/
export default defineConfig({
@ -39,7 +40,12 @@ export default defineConfig({
outDir: './build',
sourcemap: true,
minify: false,
target: 'esnext'
target: 'esnext',
rollupOptions: {
input: {
main: path.resolve(__dirname, 'indexV2.html')
}
}
},
esbuild: {
keepNames: true, // Prevent function name mangling