# encoding: utf-8 require 'rake' require 'rake/sprocketstask' require 'classy_assets' module ClassyAssets class Tasks < Rake::SprocketsTask ; end end Rake::ClassyAssetsTask.new do |t| if ClassyAssets.config.asset_compress ClassyAssets.sprockets.css_compressor = ClassyAssets.config.css_compressor ClassyAssets.sprockets.js_compressor = ClassyAssets.config.css_compressor end t.environment = ClassyAssets.sprockets t.output = ClassyAssets.config.asset_precompile_folder t.assets = ClassyAssets.config.asset_precompile_files end