optimise
title: Optimising icon code
functions:
deOptimisePaths: '/docs/libraries/tools/icon/paths.md'
runSVGO: '/docs/libraries/tools/icon/svgo.md'
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 [func]runSVGO() function from Iconify Tools, followed by [func]deOptimisePaths() to make sure icons are usable everywhere.
这篇文档对你有帮助吗?
谢谢你的反馈!