Guest User

Untitled

a guest
Feb 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. namespace :sass do
  2. desc 'Updates stylesheets if necessary from their Sass templates.'
  3. task :update => :environment do
  4. # Assuming you output your compiled stylesheets to a special directory, you can force an update by removing them.
  5. sh "rm -rf public/stylesheets/compiled"
  6. Sass::Plugin.update_stylesheets
  7. end
  8. end
Add Comment
Please, Sign In to add comment