From dcd1fad6ac4afa344f13c5e41f7edceaf02180fb Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Tue, 5 Mar 2024 10:51:49 +0100 Subject: [PATCH] solve access to /login Vite won't export not specified page, so I specified it in the config. --- frontend/{login.html => login/index.html} | 0 frontend/vite.config.js | 9 +++++++++ 2 files changed, 9 insertions(+) rename frontend/{login.html => login/index.html} (100%) diff --git a/frontend/login.html b/frontend/login/index.html similarity index 100% rename from frontend/login.html rename to frontend/login/index.html diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 5c45e1d..7ff998b 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -8,6 +8,15 @@ export default defineConfig({ plugins: [ vue(), ], + build: { + rollupOptions:{ + input:{ + main: './index.html', + login: './login/index.html' + } + + } + }, resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) -- 2.46.0