Skip to content

Instantly share code, notes, and snippets.

@rozap
Created June 28, 2013 02:49
Show Gist options
  • Save rozap/5882121 to your computer and use it in GitHub Desktop.
Save rozap/5882121 to your computer and use it in GitHub Desktop.
monitor a directory of less files and compile the output to a css file when anything changes in the directory. requires inotify-tools, here https://github.com/rvoicilas/inotify-tools/wiki
#!/bin/sh
while inotifywait -e modify .; do
lessc all.less > ../css/style.css
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment