From 2697be11befff0128cb0b5c02fc978368546ee34 Mon Sep 17 00:00:00 2001 From: Aryann Dwivedi Date: Tue, 30 Jul 2024 19:24:16 +0530 Subject: [PATCH] build: update vite config of different versions to set index-cv.html as rollup input --- vite.config.v0.ts | 6 ++++++ vite.config.v1.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/vite.config.v0.ts b/vite.config.v0.ts index 5a13bd1f..220b856f 100644 --- a/vite.config.v0.ts +++ b/vite.config.v0.ts @@ -44,6 +44,12 @@ export default defineConfig({ outDir: `../public/simulatorvue/v0/`, assetsDir: 'assets', chunkSizeWarningLimit: 1600, + rollupOptions: { + input: { + main: fileURLToPath(new URL('index-cv.html', import.meta.url)) + } + } + }, server: { port: 4000, diff --git a/vite.config.v1.ts b/vite.config.v1.ts index 0aa502ab..66bcbdd9 100644 --- a/vite.config.v1.ts +++ b/vite.config.v1.ts @@ -44,6 +44,12 @@ export default defineConfig({ outDir: `../public/simulatorvue/v1/`, assetsDir: 'assets', chunkSizeWarningLimit: 1600, + rollupOptions: { + input: { + main: fileURLToPath(new URL('index-cv.html', import.meta.url)) + } + } + }, server: { port: 4000,