Sha256: 2c5a47812994a8e2cde5ec2c0c6489671c57cf93f5a44289e6d5437195988e57
Contents?: true
Size: 771 Bytes
Versions: 4
Compression:
Stored size: 771 Bytes
Contents
$stdout.sync = true namespace :shakapacker do desc "Compile JavaScript packs using webpack for production with digests" task compile: ["shakapacker:verify_install", :environment] do Shakapacker.with_node_env(ENV.fetch("NODE_ENV", "production")) do Shakapacker.ensure_log_goes_to_stdout do exit! unless Shakapacker.compile end end end end def invoke_shakapacker_compile_in_assets_precompile_task Rake::Task["assets:precompile"].enhance do |task| prefix = task.name.split(/#|assets:precompile/).first Rake::Task["#{prefix}shakapacker:compile"].invoke end end if Shakapacker.config.shakapacker_precompile? if Rake::Task.task_defined?("assets:precompile") invoke_shakapacker_compile_in_assets_precompile_task end end
Version data entries
4 entries across 4 versions & 1 rubygems