Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Conversation

@mcaskill
Copy link
Member

The aging SVG Mixer does not support minification of the SVG symbols. This adds support for SVGO to optimize the spritesheet when executing the svgs.js task.

Further optimization can be performed by pre-processing individual SVG files via an NPM script made available in the package.json file:

npm run optimize:svg -- -f ./assets/images ./assets/images

Added:
- NPM dependency svgo v3.2.0
- Helper 'svgo.js' to use dynamic import to fetch SVGO, if available.

Changed:
- 'svgs.js' to conditionally process spritesheets with SVGO if it's available.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants