Last active
April 12, 2016 03:58
-
-
Save daneden/c6b5cfbcff4d3cc3ca46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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