Sha256: aee79d87f6074c59efbb90db74ba5bf029624c0af8e87aff8e15f0a4aa3fc963
Contents?: true
Size: 549 Bytes
Versions: 4
Compression:
Stored size: 549 Bytes
Contents
require "webpacker/configuration" namespace :webpacker do desc "Remove the webpack compiled output directory" task clobber: ["webpacker:verify_install", :environment] do output_path = Webpacker::Configuration.output_path FileUtils.rm_r(output_path) if File.exist?(output_path) puts "Removed webpack output path directory #{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
4 entries across 4 versions & 2 rubygems