Skip to content

Commit

Permalink
Updated the SVGO (icons) section of the development environment guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Mar 9, 2021
1 parent f2f13a4 commit d110ef2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,5 @@ The script reduces the icon size up to 70%, depending on the software used to cr

**Note**: You may still need to tweak the source code of the SVG files manually after using the script:

* The icons should have the `viewBox` attribute (instead of `width` and `height`). The `removeDimensions` SVGO plugin will not remove `width` and `height` if there is no `viewBox` attribute so make sure it is present.
* Sometimes SVGO leaves empty (transparent) groups `<g>...</g>`. They should be removed from the source.
* Sometimes SVGO leaves empty (transparent) groups `<g>...</g>`. They should be removed from the source and running `clean-up-svg-icons` again usually does that.
* Make sure the number of `<path>` elements is minimal. Merge paths whenever possible in the image processor before saving the file.

0 comments on commit d110ef2

Please sign in to comment.