Skip to content

Instantly share code, notes, and snippets.

@robflaherty
Created February 4, 2012 15:43
Show Gist options
  • Select an option

  • Save robflaherty/1738560 to your computer and use it in GitHub Desktop.

Select an option

Save robflaherty/1738560 to your computer and use it in GitHub Desktop.
Simple LESS watch and compile script
#!/bin/bash
# Requires watchr: https://github.com/mynyml/watchr
watchr -e 'watch(".*\.less$") { |f| system("lessc #{f[0]} > #{f[0]}.css && echo \"#{f[0]} > #{f[0]}.css\" ") }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment