From 5f3fd23fa8860e395088d8ccf332beb5cc11128e Mon Sep 17 00:00:00 2001 From: Kane York Date: Wed, 10 Jun 2020 13:07:37 -0700 Subject: [PATCH] DEV: Add stub flush_sw task to prevent rebuild errors (#10021) --- lib/tasks/assets.rake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 67788e3cf8637f..87a32da0c5cd6c 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -68,6 +68,14 @@ task 'assets:precompile:css' => 'environment' do end end +task 'assets:flush_sw' => 'environment' do + begin + # Pending due to test failures. + rescue + STDERR.puts "Warning: unable to flush service worker script" + end +end + def assets_path "#{Rails.root}/public/assets" end