Sha256: 68d8535f93e38137d4bd4bd88847acb8692ee57a49a47321577b5484e382d7f1

Contents?: true

Size: 545 Bytes

Versions: 12

Compression:

Stored size: 545 Bytes

Contents

require "webpacker/configuration"

namespace :webpacker do
  desc "Remove the webpack compiled output directory"
  task clobber: ["webpacker:verify_config", :environment] do
    Webpacker.clobber
    $stdout.puts "Removed webpack output path directory #{Webpacker.config.public_output_path}"
  end
end

if Webpacker.config.webpacker_precompile?
  # Run clobber if the assets:clobber is run
  if Rake::Task.task_defined?("assets:clobber")
    Rake::Task["assets:clobber"].enhance do
      Rake::Task["webpacker:clobber"].invoke
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
shakapacker-6.6.0 lib/tasks/webpacker/clobber.rake
shakapacker-6.5.6 lib/tasks/webpacker/clobber.rake
shakapacker-6.5.5 lib/tasks/webpacker/clobber.rake
shakapacker-6.5.4 lib/tasks/webpacker/clobber.rake
shakapacker-6.5.3 lib/tasks/webpacker/clobber.rake
shakapacker-6.5.2 lib/tasks/webpacker/clobber.rake
shakapacker-6.5.1 lib/tasks/webpacker/clobber.rake
shakapacker-6.5.0 lib/tasks/webpacker/clobber.rake
shakapacker-6.4.1 lib/tasks/webpacker/clobber.rake
shakapacker-6.4.0 lib/tasks/webpacker/clobber.rake
shakapacker-6.3.0 lib/tasks/webpacker/clobber.rake
shakapacker-6.3.0.pre.rc.1 lib/tasks/webpacker/clobber.rake