Skip to content

Instantly share code, notes, and snippets.

@julioxavierr
Last active January 9, 2020 19:43
Show Gist options
  • Save julioxavierr/7385c17e83f2810df549105c9e886780 to your computer and use it in GitHub Desktop.
Save julioxavierr/7385c17e83f2810df549105c9e886780 to your computer and use it in GitHub Desktop.
Convert svg to use inline styles with one line
svgo path/to/file.svg --enable=inlineStyles --config '{ "plugins": [ { "inlineStyles": { "onlyMatchedOnce": false } }] }' --pretty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment