Skip to content

Instantly share code, notes, and snippets.

@makevoid
Created June 29, 2014 07:14
Show Gist options
  • Save makevoid/c5f8167bc34072782cff to your computer and use it in GitHub Desktop.
Save makevoid/c5f8167bc34072782cff to your computer and use it in GitHub Desktop.
Simple guardfile sor sass + livereload
guard 'sass', input: 'sass', output: 'public/css'
guard 'livereload' do
watch(%r{public/css/.+\.(css)})
end
@makevoid
Copy link
Author

this guardfile wants this directories structure:
(follow this example or change the settings in the guardfile)

./sass/             -> contains your sass files
./public/css/     -> contains your css files

use this to install the required libraries

gem install guard guard-sass guard-livereload

and this to run the thing

guard

then you can press the livereload extension button on your browser

now it's only a matter of making a change to the sass file

enjoy the speed ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment