By default, SVGO does not preserve the viewBox attribute for optimization reasons. This can cause issues when you need to resize your SVG with CSS. This pull request proposes to add a code snippet showing the configuration to preserve the viewBox attribute.
Thanks for your PR. I think this should be in a new section "Common issues". Can cou add that to the readme and place your issue + solution there, as a collapsed item (see this gist)?
By default, SVGO does not preserve the viewBox attribute for optimization reasons. This can cause issues when you need to resize your SVG with CSS. This pull request proposes to add a code snippet showing the configuration to preserve the viewBox attribute.