From 8df4b8dfc20027b495fe6f7e93b760ea0bdb6578 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 11 Sep 2026 21:22:16 +0200 Subject: [PATCH] Close the build-chunks note: the size is Pixi plus editor, all loaded at start Splitting the bundle would only silence Vite's 500 kB warning. The real saving is transport compression: nginx serves the 590 kB bundle without gzip (184 kB compressed), and that setting lives in the shared web-stack config, not in this repo. Co-Authored-By: Claude Opus 5 --- todo-notes/build-chunks.md | 12 ------------ todo-notes/done/build-chunks.md | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 12 deletions(-) delete mode 100644 todo-notes/build-chunks.md create mode 100644 todo-notes/done/build-chunks.md diff --git a/todo-notes/build-chunks.md b/todo-notes/build-chunks.md deleted file mode 100644 index 0f633405..00000000 --- a/todo-notes/build-chunks.md +++ /dev/null @@ -1,12 +0,0 @@ -beim build kommt immer folgender output: -``` -../dist/assets/index-CPWPKF3g.js 578.97 kB │ gzip: 180.43 kB │ map: 2,777.11 kB - -(!) Some chunks are larger than 500 kB after minification. Consider: -- Using dynamic import() to code-split the application -- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks -- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. -``` - -- was bedeutet das? -- kann man das "fixen"? diff --git a/todo-notes/done/build-chunks.md b/todo-notes/done/build-chunks.md new file mode 100644 index 00000000..d21d557c --- /dev/null +++ b/todo-notes/done/build-chunks.md @@ -0,0 +1,19 @@ +beim build kommt immer folgender output: +``` +../dist/assets/index-CPWPKF3g.js 578.97 kB │ gzip: 180.43 kB │ map: 2,777.11 kB + +(!) Some chunks are larger than 500 kB after minification. Consider: +- Using dynamic import() to code-split the application +- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks +- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. +``` + +- was bedeutet das? +- kann man das "fixen"? + +--- +Antwort (User-Wahl: nichts ändern): +- Die Meldung ist nur ein Hinweis von Vite, kein Fehler. Sie erscheint bei jedem Chunk über 500 kB (minifiziert). +- Das Hauptbundle (590 kB) besteht zur Hälfte aus Pixi (300 kB: Grafik, Text, Container, Renderer, also fast nur Benutztes) und zur Hälfte aus eigenem Code (287 kB, davon Editor 130, Core 97, UI 40). Code-Splitting per `import()` bringt nichts, weil der Editor beim Start alles braucht. +- „Fixen“ ginge über einen eigenen Pixi-Chunk (`manualChunks`, beide Teile unter 500 kB, Pixi bleibt nach einem Deploy im Cache) oder über eine höhere Warngrenze (`chunkSizeWarningLimit`). An der Gesamtgröße ändert beides nichts. +- Größerer Hebel: nginx liefert JS unkomprimiert aus, weil `gzip` in der Konfiguration des Web-Stacks aus ist (590 kB statt 184 kB mit gzip, gemessen). Das Modul `gzip_static` ist im Container vorhanden.