mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
The summary divided by zero and printed "NaN% smaller" when nothing cleared the extension and size filters. The comment on the extension list said it tracks gzip_types, which was wrong twice over: .svg, .wasm, .webmanifest and .map are absent from that directive, and gzip_static serves a .gz sibling without consulting it at all. Someone editing either list on the strength of that comment would have changed behaviour silently. Storybook builds ran the plugin too, gzipping storybook-static that nginx never serves. It is stripped alongside vite-plugin-pwa, which .storybook already does for the same reason. The Python test could only grep vite.config.js for the call, so a gutted closeBundle or apply: "serve" left it green. A vitest suite now runs the hooks against a temporary directory and checks the archive round-trips, that small and already-compressed files are skipped, and that a rerun does not compress its own output. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HDXxq3vAxJVGhm1pQuK8V7