# encoding: utf-8 require 'rake' require 'rake/sprocketstask' require 'classy_assets' class Rake::ClassyAssetsTask < Rake::SprocketsTask def define_precompile desc "Precompile assets" task "assets:precompile" => [:assets] end end Rake::ClassyAssetsTask.new do |t| ClassyAssets.config.asset_compress = true t.environment = ClassyAssets.sprockets t.output = ClassyAssets.config.asset_precompile_folder t.assets = ClassyAssets.config.asset_precompile_files t.define_precompile end