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