compress html on build

This commit is contained in:
Echo 2025-06-05 01:47:45 -04:00
parent 5d31744f0b
commit ae9e643321
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View file

@ -122,3 +122,5 @@ group :test do
gem "capybara"
gem "selenium-webdriver"
end
gem "htmlcompressor", "~> 0.4.0"

View file

@ -46,5 +46,7 @@ module Harbor
expire_after: 14.days,
secure: Rails.env.production?,
httponly: true
config.middleware.use HtmlCompressor::Rack
end
end