Skip to content

Instantly share code, notes, and snippets.

@chriseppstein
Created December 18, 2010 07:41
Show Gist options
  • Save chriseppstein/746279 to your computer and use it in GitHub Desktop.
Save chriseppstein/746279 to your computer and use it in GitHub Desktop.
In compass v0.11 you can watch arbitrary files and react to them yourself. Just add one or more watch commands to your configuration file:
watch "images/*" do |base, relative|
puts "File size of #{relative} is: #{File.size(File.join(base, relative))}"
end
>>> Compass is polling for changes. Press Ctrl-C to Stop.
>>> Change detected to: images/border.png
File size of images/border.png is: 3712
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment