1
0
mirror of https://github.com/privacyguides/privacyguides.org.git synced 2025-07-02 09:42:35 +00:00

Enable Brotli compression

- Compress file AOD.
- Let the server only use static files. 
- Don't add github-pages to jekyll-plugins group, due to the fact github-pages will behave differently when enabling production ENV.
- Adds an extra 10s for the `host` to use `./buid.sh` due to compressing all files.
- Resolves #2186
This commit is contained in:
Gusted
2021-01-12 20:27:59 +01:00
parent 2fcb959eb8
commit 49b7c15201
4 changed files with 21 additions and 12 deletions

View File

@ -1,12 +1,10 @@
source "https://rubygems.org"
# Install github-pages gem (https://jekyllrb.com/docs/github-pages/)
gem "github-pages", group: :jekyll_plugins
gem "github-pages"
# Plugins
group :jekyll_plugins do
# example: gem "jekyll-feed", "~> 0.6"
end
# Install jekyll-brotli gem (https://github.com/philnash/jekyll-brotli/)
gem 'jekyll-brotli'
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]