diff --git a/lib/tasks/webpack_compile.rake b/lib/tasks/webpack_compile.rake index 4aaa37d538c..175d6b1cd1e 100644 --- a/lib/tasks/webpack_compile.rake +++ b/lib/tasks/webpack_compile.rake @@ -16,5 +16,6 @@ namespace :webpack do end sh "npx --max_old_space_size=#{max_old_space_size} webpack --config #{config_file} --bail" + ActiveRecord::Base.clear_all_connections! end end