lib/classy_assets/tasks.rb in classy_assets-0.9.2 vs lib/classy_assets/tasks.rb in classy_assets-0.9.3

- old
+ new

@@ -3,13 +3,18 @@ require 'rake' require 'rake/sprocketstask' require 'classy_assets' module ClassyAssets - class Tasks < Rake::SprocketsTask ; end + class Tasks < Rake::SprocketsTask + def precompile + task "assets:precompile" => [:clean_assets, :assets] + end + end end ClassyAssets::Tasks.new do |t| t.environment = ClassyAssets.sprockets t.output = ClassyAssets.config.asset_precompile_folder t.assets = ClassyAssets.config.asset_precompile_files + t.precompile end