Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional support for SVGO #167

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add optional support for SVGO #167

wants to merge 3 commits into from

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 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.

None yet

1 participant