Created
December 7, 2011 22:41
-
-
Save davidkrisch/1445074 to your computer and use it in GitHub Desktop.
HOWTO: Watchr recompiling Less on Save
This file contains 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
# Install the necessary packages | |
# Assumes node.js/npm and ruby/gem are already installed | |
npm install less | |
gem install watchr | |
Create a .less file. | |
Run this (replace <filename> with the actual filename) | |
watchr -e 'watch("<filename>") { |f| system("lessc #{f[0]}") }' & | |
Save the .less file and observe the css output in the terminal. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment