Skip to content

Instantly share code, notes, and snippets.

@mlbd
Forked from dropddesigns/SASS - Both.sublime-build
Created February 22, 2018 09:58
Show Gist options
  • Save mlbd/2d089907d772449866568358d4bc0177 to your computer and use it in GitHub Desktop.
Save mlbd/2d089907d772449866568358d4bc0177 to your computer and use it in GitHub Desktop.
SASS Build script to build both uncompressed and compress CSS files
{
"cmd": [
"sass", "--update", "--watch", "$file:${file_path}/${file_base_name}.css", "--sourcemap=none", "--stop-on-error", "--no-cache", "--style", "expanded",
"&",
"sass", "--update", "$file:${file_path}/${file_base_name}.min.css", "--stop-on-error", "--no-cache", "--style", "compressed"
],
"selector": "source.sass, source.scss",
"line_regex": "Line ([0-9]+):",
"osx":{"path": "/usr/local/bin:$PATH"},
"windows":{"shell": "true"}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment