mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 19:55:16 +00:00
compress html on build
This commit is contained in:
parent
5d31744f0b
commit
ae9e643321
2 changed files with 4 additions and 0 deletions
2
Gemfile
2
Gemfile
|
|
@ -122,3 +122,5 @@ group :test do
|
|||
gem "capybara"
|
||||
gem "selenium-webdriver"
|
||||
end
|
||||
|
||||
gem "htmlcompressor", "~> 0.4.0"
|
||||
|
|
|
|||
|
|
@ -46,5 +46,7 @@ module Harbor
|
|||
expire_after: 14.days,
|
||||
secure: Rails.env.production?,
|
||||
httponly: true
|
||||
|
||||
config.middleware.use HtmlCompressor::Rack
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue