Bundle all Lucide icon chunks into one file instead of ~1600 tiny files
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 <noreply@anthropic.com>
This commit is contained in:
parent
75684df837
commit
a815b0e01d
1 changed files with 12 additions and 0 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue