diff --git a/vite.config.ts b/vite.config.ts index ec8ea02..d347c76 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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