From a815b0e01dd79f0e67e5ae2b7c5b18938d22b419 Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Sun, 5 Jul 2026 15:36:07 +0200 Subject: [PATCH] Bundle all Lucide icon chunks into one file instead of ~1600 tiny files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lucide-react/dynamic erzeugt pro Icon eine eigene Chunk-Datei, was beim Deploy auf Shared-Hosting (Datei-Upload/Zip-Entpacken über Plesk) an Datei-Limits scheitert. Per manualChunks jetzt alle Icons in eine gemeinsame Datei gebündelt (1757 -> 12 Dateien im Build-Output). Co-Authored-By: Claude Sonnet 5 --- hifi-src/vite.config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hifi-src/vite.config.js b/hifi-src/vite.config.js index 7fd2e23..445f17c 100644 --- a/hifi-src/vite.config.js +++ b/hifi-src/vite.config.js @@ -7,6 +7,18 @@ export default defineConfig({ build: { outDir: '../hifi', emptyOutDir: false, + rollupOptions: { + output: { + // Ohne das erzeugt lucide-react/dynamic pro Icon eine eigene Chunk-Datei + // (~1600 Stück) - auf Shared-Hosting scheitert das Hochladen/Entpacken + // so vieler winziger Dateien. Hier alle Icons in eine Datei bündeln. + manualChunks(id) { + if (id.includes('lucide-react')) { + return 'lucide-icons'; + } + }, + }, + }, }, server: { proxy: {