Skip to content

Optimising icon

This article is part of SVG clean up article.

After initial clean up and validation, changing icon palette, the icon is optimised.

Optimisation is done by SVGO. Not much to write about it, you can try SVGO optimisation yourself using SVGOMG project.

Code

Optimisation is done using runSVGO() function from Iconify Tools, followed by deOptimisePaths() to make sure icons are usable everywhere.

Released under the Apache 2.0 License.