Compile Stylus, when the file is changed

#!/bin/bash SIZE_FILE=$(cat *.styl) echo Running... while [ true ] do SIZE_FILE_2=$(cat *.styl) if [ "$SIZE_FILE" != "$SIZE_FILE_2" ]; then stylus -c *.styl SIZE_FILE=$(cat *.styl) fi sleep 1 done
Stylus
Node.js

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.