Skip to content

Instantly share code, notes, and snippets.

@matthijsgroen
Created March 28, 2011 06:31
Show Gist options
  • Save matthijsgroen/890078 to your computer and use it in GitHub Desktop.
Save matthijsgroen/890078 to your computer and use it in GitHub Desktop.
Rake task to watch all scss files
namespace :scss do
task :watch do
files = `find . -iname *.scss`
destination = "public/stylesheets/"
pairs = []
files.each_line do |file|
file.strip!
pairs << "#{file}:#{destination}#{File.basename(file, ".scss")}.css"
end
command = "sass --watch #{pairs.join " "}"
`#{command}`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment