chore: configure vite for GitHub Pages deployment

This commit is contained in:
LC mac
2026-01-29 00:21:26 +08:00
parent c55390228b
commit b7da81c5d4
2 changed files with 15 additions and 18 deletions

View File

@@ -3,16 +3,9 @@ import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
base: '/seedpgp-web-app/', // Match your repo name
base: '/seedpgp-web-app/',
build: {
chunkSizeWarningLimit: 600, // Suppress warning
rollupOptions: {
output: {
manualChunks: {
'openpgp': ['openpgp'], // Separate chunk for PGP
}
}
}
outDir: 'dist',
emptyOutDir: false,
}
})