Sha256: 4fd229da4a6900a263b14d2550aeec5ebe3ecf352bcabdc3796a9ce9d8e1dc65
Contents?: true
Size: 909 Bytes
Versions: 1
Compression:
Stored size: 909 Bytes
Contents
# encoding: utf-8 if defined?(Bundler) Bundler.require(:assets) end require 'rake' require 'rake/sprocketstask' require 'classy_assets' module ClassyAssets class Tasks < Rake::SprocketsTask def define_precompile_task desc "Clean and precompile assets" task "assets:precompile" => [:environment, :clean_classy_assets, :classy_assets] end def self.init! ClassyAssets::Tasks.new(:classy_assets) do |t| t.define_precompile_task t.environment = ClassyAssets.sprockets t.output = ClassyAssets.config.asset_precompile_path t.assets = ClassyAssets.config.asset_precompile t.keep = ClassyAssets.config.asset_precompile_keep t.manifest = ::Sprockets::Manifest.new(t.environment, ClassyAssets.config.asset_manifest_path) t.log_level = :debug end end end end ClassyAssets::Tasks.init!
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
classy_assets-0.14.5 | lib/classy_assets/tasks.rb |