Skip to content

Instantly share code, notes, and snippets.

@bigandy
Created July 27, 2012 08:22
Show Gist options
  • Save bigandy/3186823 to your computer and use it in GitHub Desktop.
Save bigandy/3186823 to your computer and use it in GitHub Desktop.
sass rakefile
#rakefile
namespace :sass do
task :sass_environment => :environment do
Sass::Plugin.on_updating_stylesheet { |template, css| puts "Building #{css} from #{template}" }
Sass::Plugin.on_not_updating_stylesheet { |template, css| puts "Skipping #{css}" }
end
desc "Forcefully updates the stylesheets generated by SASS."
task :build => :sass_environment do
Sass::Plugin.force_update_stylesheets
end
desc "Updates the out of date stylesheets generated by SASS."
task :update => :sass_environment do
Sass::Plugin.update_stylesheets
end
end
task :default => 'sass:update'
#output from command line after running rake
rake
rake aborted!
Don't know how to build task 'environment'
Tasks: TOP => sass:build => sass:sass_environment
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment