Created
February 4, 2012 15:43
-
-
Save robflaherty/1738560 to your computer and use it in GitHub Desktop.
Simple LESS watch and compile script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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