Skip to content

Commit

Permalink
Add a task to remove JavaScript builds (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
mibradev committed Oct 7, 2021
1 parent c3c4610 commit 8b4d2a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/tasks/jsbundling/clean.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace :javascript do
desc "Remove JavaScript builds"
task :clean do
rm_rf Dir["app/assets/builds/[^.]*.js"], verbose: false
end
end

Rake::Task["assets:clean"].enhance(["javascript:clean"])

0 comments on commit 8b4d2a9

Please sign in to comment.