Skip to content

🛠️ Add SVGO optimization pipeline and optimize SVGs#2841

Open
b-l-i-n-d wants to merge 8 commits into
devfrom
svgo
Open

🛠️ Add SVGO optimization pipeline and optimize SVGs#2841
b-l-i-n-d wants to merge 8 commits into
devfrom
svgo

Conversation

@b-l-i-n-d

@b-l-i-n-d b-l-i-n-d commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

To optimize our workflow and eliminate the need for copy-pasting SVG code, we've implemented several changes:

Reduced the bundle size by 70KB.

  • Added an SVGO configuration and optimization script.
  • Introduced a svgo-optimize npm script.
  • Incorporated a lint-staged hook for SVG optimization.
  • Added the SVGO dependency.
  • Optimized approximately 460 SVG icons to decrease file size.
  • Removed the unused TUTOR\User import from SvgIcon.php.
  • Fixed a duplicate ID issue that was causing rendering confusion in browsers.

@b-l-i-n-d b-l-i-n-d changed the title WIP 🛠️ Add SVGO optimization pipeline and optimize SVGs Jun 29, 2026
@b-l-i-n-d
b-l-i-n-d changed the base branch from master to 4.0.0-dev June 29, 2026 06:55
@b-l-i-n-d
b-l-i-n-d changed the base branch from 4.0.0-dev to dev July 13, 2026 06:04
@b-l-i-n-d
b-l-i-n-d marked this pull request as ready for review July 13, 2026 06:04
@b-l-i-n-d
b-l-i-n-d requested a review from sazedul-haque July 13, 2026 09:21
@b-l-i-n-d b-l-i-n-d added enhancement New feature or request QoL Quality of Life bug Something isn't working labels Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request QoL Quality of Life

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant