Sha256: 196c6239a5d8a08d19bf74af9cfb13b1292476695735e702a3a643708ac63668

Contents?: true

Size: 488 Bytes

Versions: 52

Compression:

Stored size: 488 Bytes

Contents

require "webpacker/configuration"

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

# 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

Version data entries

52 entries across 52 versions & 4 rubygems

Version Path
webpacker-4.3.0 lib/tasks/webpacker/clobber.rake
jetpacker-0.4.2 lib/tasks/webpacker/clobber.rake
jetpacker-0.4.1 lib/tasks/webpacker/clobber.rake
jetpacker-0.4.0 lib/tasks/webpacker/clobber.rake
jetpacker-0.3.0 lib/tasks/webpacker/clobber.rake
jetpacker-0.2.0 lib/tasks/webpacker/clobber.rake
webpacker-4.2.2 lib/tasks/webpacker/clobber.rake
webpacker-4.2.1 lib/tasks/webpacker/clobber.rake
webpacker-4.2.0 lib/tasks/webpacker/clobber.rake
webpacker-4.1.0 lib/tasks/webpacker/clobber.rake
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/webpacker-4.0.7/lib/tasks/webpacker/clobber.rake
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/webpacker-4.0.7/lib/tasks/webpacker/clobber.rake
webpacker-4.0.7 lib/tasks/webpacker/clobber.rake
webpacker-4.0.6 lib/tasks/webpacker/clobber.rake
webpacker-4.0.5 lib/tasks/webpacker/clobber.rake
webpacker-4.0.4 lib/tasks/webpacker/clobber.rake
webpacker-4.0.3 lib/tasks/webpacker/clobber.rake
webpacker-4.0.2 lib/tasks/webpacker/clobber.rake
webpacker-3.6.0 lib/tasks/webpacker/clobber.rake
webpacker-4.0.1 lib/tasks/webpacker/clobber.rake