locomotivemtl / locomotive-boilerplate

🚂 Front-end boilerplate for projects by Locomotive.
https://locomotivemtl-boilerplate.vercel.app/
MIT License
455 stars 71 forks source link

Add optional support for SVGO #167

Open mcaskill opened 5 months ago

mcaskill commented 5 months ago

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