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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user