Skip to content

Instantly share code, notes, and snippets.

@rodcisal
Created May 20, 2014 02:20
Show Gist options
  • Save rodcisal/2a4e80f9b7c3df545a0e to your computer and use it in GitHub Desktop.
Save rodcisal/2a4e80f9b7c3df545a0e to your computer and use it in GitHub Desktop.
my Guardfile
guard 'livereload' do
watch(%r{content/pages(/.+)\.(mdown|textile|haml)}) { |match| match[1] }
watch(%r{public(/.+\.(jpe?g|js|png))}) { |match| match[1] }
watch(%r{views/.+\.haml})
watch(%r{views/.+\.html.erb})
watch(%r{assets/stylesheets/(.+)\.s[ac]ss}) do |match|
if match[1] =~ /(mixins|variables)/
["/css/master.css", "/css/layout.css"]
else
"/css/#{match[1]}.css"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment