Sorry, the InVision Help Center does not support Internet Explorer. Please download Microsoft Edge or another modern browser.


InVision ambassador ambassador
Sakis Zafeiropoulos Sakis Zafeiropoulos

Exporting clean SVG code with svgo plugin via craft

Hey there! I recently had a chat with one of our devs at work and we realised that the SVGs i have been marking as exportable in Sketch and then syncing online with craft do not produce clean SVG code, it has too many unnecessary lines in it.

As i looked online for a solution to this issue i came across this https://www.sketch.com/extensions/plugins/svgo-compressor/ a plugin that cleans up the code. 

Thing is that it does not work unless i export the SVGs directly from Sketch.

So the question here is how would i go about syncing an artboard in Sketch with exportable SVGs on it and have them produce cleaner svg code?

1

join the conversation

to comment, sign up or sign in.