Sha256: 66b03fb0d613fa155bbdc8c32cca02f559670f232f762fb817a2b7afd12f01dc

Contents?: true

Size: 576 Bytes

Versions: 1

Compression:

Stored size: 576 Bytes

Contents

require 'compass'
# If you have any compass plugins, require them here.
Compass.add_project_configuration(File.join(Rails.root, "config", "compass.config"))
Compass.configuration.environment = Rails.env.to_sym
Compass.configure_sass_plugin!

if ['production', 'staging'].include? Rails.env 
  Sass::Plugin.options[:style] = :compressed
  
  FileUtils.rm_rf "#{Rails.root}/public/stylesheets/*.css"
  FileUtils.rm_rf "#{Rails.root}/tmp/sass-cache"

  Sass::Plugin.options[:never_update] = false
  Sass::Plugin.update_stylesheets
  Sass::Plugin.options[:never_update] = true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
humpyard-0.0.1 lib/generators/humpyard/skeleton/templates/initializers/compass.rb