Skip to content

Instantly share code, notes, and snippets.

@rozzy
Last active December 10, 2015 15:08
Show Gist options
  • Save rozzy/4452558 to your computer and use it in GitHub Desktop.
Save rozzy/4452558 to your computer and use it in GitHub Desktop.
Compile Sass & Slim via this sublime build. Put into `Sublime Text 2/packages/user/`
{
"cmd": ["if [ \"$file_extension\" = \"sass\" ]; then sass --watch $file_name:../${file_base_name}.css --style compressed; elif [ \"$file_extension\" = \"slim\" ]; then slimrb -p $file_name ../$file_base_name.html; fi"],
"selector": "source.slim,source.sass",
"working_dir": "$file_path",
"path": "/usr/local/bin:$PATH",
"shell": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment