Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Bash

Git pre-commit hook for compiling SCSS

1
2
3
4
#!/bin/sh

scss -t compressed /path/to/css/style.scss /path/to/css/style.css
git add static/css/style.css
https://snipt.net/embed/c31441c31a16e85aa76a62fe3f055965/
https://snipt.net/raw/c31441c31a16e85aa76a62fe3f055965/
c31441c31a16e85aa76a62fe3f055965
bash
Bash
4
2016-12-06T11:35:02
True
False
False
/api/public/snipt/55185/
git-pre-commit-for-compiling-scss
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="ch">#!/bin/sh</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>scss -t compressed /path/to/css/style.scss /path/to/css/style.css </span><span id="L-4"><a name="L-4"></a>git add static/css/style.css </span></pre></div> </td></tr></table>
git, sass, scss
Copyrighted, illegal, or inappropriate content? Email [email protected].