adding indexV2 to the build path
This commit is contained in:
parent
9c94585de0
commit
a0bb90099c
1 changed files with 7 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ import { defineConfig } from 'vite'
|
||||||
import react from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||||
import { VitePWA } from 'vite-plugin-pwa';
|
import { VitePWA } from 'vite-plugin-pwa';
|
||||||
|
import * as path from 'path' // ✅ Import path module
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
@ -39,7 +40,12 @@ export default defineConfig({
|
||||||
outDir: './build',
|
outDir: './build',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
minify: false,
|
minify: false,
|
||||||
target: 'esnext'
|
target: 'esnext',
|
||||||
|
rollupOptions: {
|
||||||
|
input: {
|
||||||
|
main: path.resolve(__dirname, 'indexV2.html')
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
esbuild: {
|
esbuild: {
|
||||||
keepNames: true, // Prevent function name mangling
|
keepNames: true, // Prevent function name mangling
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue