Sha256: 1d80a558dd7ae57d1b883662c917722c013cd809993937f40653ec5ba61060d5

Contents?: true

Size: 1011 Bytes

Versions: 1

Compression:

Stored size: 1011 Bytes

Contents

namespace :assets do
  desc "Compile all the assets from config.assets.paths"
  task precompile: :environment do
    Rails.application.assets.processor.process
    if Rails.env.development?
      puts "Warning: You are precompiling assets in development. Rails will not " \
        "serve any changed assets until you delete public/assets/.manifest.json"
    end
  end

  desc "Remove config.assets.output_path"
  task clobber: :environment do
    Rails.application.assets.processor.clobber
  end

  desc "Removes old files in config.assets.output_path"
  task clean: :environment do
    Rails.application.assets.processor.clean
  end

  desc "Print all the assets available in config.assets.paths"
  task reveal: :environment do
    puts Rails.application.assets.reveal(:logical_path).join("\n")
  end

  namespace :reveal do
    desc "Print the full path of assets available in config.assets.paths"
    task full: :environment do
      puts Rails.application.assets.reveal(:path).join("\n")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
propshaft-0.7.0 lib/propshaft/railties/assets.rake