Enhance Vite configuration to suppress Lottie player eval warnings and update footer links to point to correct service paths. Replace Lottie player with an image in the Hero component for improved performance.

This commit is contained in:
becarta
2025-05-16 00:51:27 +02:00
parent bfdac3f322
commit 27e836b546
5 changed files with 36 additions and 19 deletions

View File

@@ -18,5 +18,16 @@ export default defineConfig({
},
resolve: {
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.svelte']
},
build: {
rollupOptions: {
onwarn(warning, warn) {
// Ignore eval warnings from Lottie player
if (warning.code === 'EVAL' && warning.id?.includes('lottie-player')) {
return;
}
warn(warning);
}
}
}
});