Skip to content

build: optimize SVG assets during production builds - #495

Merged
ilteoood merged 3 commits into
fastify:mainfrom
Puppo:plan-svgo-integration-website
Aug 21, 2026
Merged

build: optimize SVG assets during production builds#495
ilteoood merged 3 commits into
fastify:mainfrom
Puppo:plan-svgo-integration-website

Conversation

@Puppo

@Puppo Puppo commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Description

Optimize SVG assets during production builds without rewriting committed sources.

  • Optimize imported SVG components with Astro's SVGO optimizer.
  • Optimize organization logos copied from public/ with vite-plugin-image-optimizer.
  • Keep the favicon and fetched documentation SVGs outside the public-asset optimization scope.
  • Reduce the 11 organization logos from 50,790 to 42,325 bytes (16.7%).

Verification

  • npm ci
  • npm run lint
  • npm run check
  • npm run build:website

Check List

Signed-off-by: Luca Del Puppo <luca@delpuppo.net>
@Puppo
Puppo marked this pull request as ready for review August 21, 2026 12:42
Signed-off-by: Luca Del Puppo <luca@delpuppo.net>
@Puppo
Puppo deployed to sandbox August 21, 2026 13:35 — with GitHub Actions Active
@ilteoood
ilteoood merged commit e36541f into fastify:main Aug 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants