lib/classy_assets/tasks.rb in classy_assets-0.11.3 vs lib/classy_assets/tasks.rb in classy_assets-0.11.4
- old
+ new
@@ -2,9 +2,14 @@
require 'rake'
require 'rake/sprocketstask'
require 'classy_assets'
+if ClassyAssets.config.asset_compress
+ require 'uglifier'
+ require 'yui/compressor'
+end
+
module ClassyAssets
class Tasks < Rake::SprocketsTask
def define_precompile_task
task "assets:precompile" => [:clean_assets, :assets]
end