Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TextMate Command "Compile SCSS to CSS"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
<string>#!/bin/sh
SASS_OPTS="-t expanded --scss"
cd ${TM_PROJECT_DIRECTORY}
sass ${SASS_OPTS} "${TM_FILEPATH}":"css/${TM_FILENAME%.*}.css"
echo "exported css/${TM_FILENAME%.*}.css"
</string>
<key>input</key>
<string>document</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>@s</string>
<key>name</key>
<string>Compile SCSS to CSS</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>text</string>
<key>outputLocation</key>
<string>toolTip</string>
<key>scope</key>
<string>source.scss</string>
<key>uuid</key>
<string>B41C5BBF-A794-45F2-B847-088D19F124AE</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.