Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace :sass do
- desc 'Updates stylesheets if necessary from their Sass templates.'
- task :update => :environment do
- # Assuming you output your compiled stylesheets to a special directory, you can force an update by removing them.
- sh "rm -rf public/stylesheets/compiled"
- Sass::Plugin.update_stylesheets
- end
- end
Add Comment
Please, Sign In to add comment