snipt

Ctrl+h for KB shortcuts

Bash

SASS watch changes script for OS X (save in .command file and run)

cd $(dirname "$0")
sass --watch "style.scss":"style.css"
https://snipt.net/embed/545eedf4c165272bbce7e4b217c0d2e2/
/raw/545eedf4c165272bbce7e4b217c0d2e2/
545eedf4c165272bbce7e4b217c0d2e2
bash
Bash
2
2016-12-29T18:36:25
True
False
True
Feb 12, 2013 at 01:17 PM
/api/public/snipt/48430/
sass-watch-changes-script-for-os-x-save-in-command-file-and-run
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nb">cd</span> <span class="k">$(</span>dirname <span class="s2">&quot;</span><span class="nv">$0</span><span class="s2">&quot;</span><span class="k">)</span> </span><span id="L-2"><a name="L-2"></a>sass --watch <span class="s2">&quot;style.scss&quot;</span>:<span class="s2">&quot;style.css&quot;</span> </span></pre></div> </td></tr></table>
"os x", css, ruby, sass, webdev