Skip to content

Instantly share code, notes, and snippets.

@daneden
Last active April 12, 2016 03:58
Show Gist options
  • Save daneden/c6b5cfbcff4d3cc3ca46 to your computer and use it in GitHub Desktop.
Save daneden/c6b5cfbcff4d3cc3ca46 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Run this command to execute the script:
# curl https://gist.githubusercontent.com/daneden/c6b5cfbcff4d3cc3ca46/raw/smaller-sketch-svgs.sh | bash
# Tell Sketch to export compact SVGs
defaults write com.bohemiancoding.sketch3 svgExportCompact -bool yes
defaults write ~/Library/Preferences/com.bohemiancoding.sketch3.plist svgExportCompact -bool yes
# Tell Sketch to omit layer names as IDs for SVGs
defaults write com.bohemiancoding.sketch3 svgExportSkipAssignIdToLayerName -bool yes
defaults write ~/Library/Preferences/com.bohemiancoding.sketch3.plist svgExportSkipAssignIdToLayerName -bool yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment