Skip to content

Commit

Permalink
Add Jekyll Minifier
Browse files Browse the repository at this point in the history
Jekyll HTML/XML/CSS/JS Minifier utilising yui-compressor, and htmlcompressor

https://github.com/digitalsparky/jekyll-minifier

JEKYLL_ENV=production bundle exec jekyll serve

To switch part of your config settings depending on the environment, use the build command option, for example --config _config.yml,_config.dev.yml. Settings in later files override settings in earlier files.
  • Loading branch information
jbampton committed Apr 11, 2021
1 parent 03e8262 commit 52a293a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem 'github-pages', group: :jekyll_plugins
group :jekyll_plugins do
gem 'jekyll-avatar'
gem 'jekyll-feed'
gem 'jekyll-minifier'
gem 'jekyll-sitemap'
end

Expand Down
14 changes: 14 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ GEM
commonmarker (0.17.13)
ruby-enum (~> 0.5)
concurrent-ruby (1.1.8)
cssminify2 (2.0.1)
dnsruby (1.61.5)
simpleidn (~> 0.1)
em-websocket (0.5.2)
Expand Down Expand Up @@ -90,6 +91,7 @@ GEM
html-pipeline (2.14.0)
activesupport (>= 2)
nokogiri (>= 1.4)
htmlcompressor (0.4.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -130,6 +132,12 @@ GEM
jekyll-mentions (1.6.0)
html-pipeline (~> 2.3)
jekyll (>= 3.7, < 5.0)
jekyll-minifier (0.1.10)
cssminify2 (~> 2.0)
htmlcompressor (~> 0.4)
jekyll (>= 3.5)
json-minify (~> 0.0.3)
uglifier (~> 4.1)
jekyll-optional-front-matter (0.3.2)
jekyll (>= 3.0, < 5.0)
jekyll-paginate (1.1.0)
Expand Down Expand Up @@ -199,6 +207,9 @@ GEM
gemoji (~> 3.0)
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
json (2.5.1)
json-minify (0.0.3)
json (> 0)
kramdown (2.3.1)
rexml
kramdown-parser-gfm (1.1.0)
Expand Down Expand Up @@ -256,6 +267,8 @@ GEM
ethon (>= 0.9.0)
tzinfo (1.2.9)
thread_safe (~> 0.1)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.7)
Expand All @@ -277,6 +290,7 @@ DEPENDENCIES
github-pages
jekyll-avatar
jekyll-feed
jekyll-minifier
jekyll-sitemap
mgem
yard-coderay
Expand Down
2 changes: 2 additions & 0 deletions _config.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jekyll-minifier:
exclude: "*"
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ include: ['_index.html']
plugins:
- jekyll-avatar
- jekyll-feed
- jekyll-minifier
- jekyll-sitemap
exclude:
- CODEOWNERS
Expand Down

0 comments on commit 52a293a

Please sign in to comment.