Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1723fe3

Browse files
committedApr 11, 2021
Add Jekyll Minifier
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.
1 parent 574f7af commit 1723fe3

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed
 

‎Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ gem 'github-pages', group: :jekyll_plugins
44

55
group :jekyll_plugins do
66
gem 'jekyll-feed'
7+
gem 'jekyll-minifier'
78
gem 'jekyll-sitemap'
89
end
910

‎Gemfile.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ GEM
1818
commonmarker (0.17.13)
1919
ruby-enum (~> 0.5)
2020
concurrent-ruby (1.1.8)
21+
cssminify2 (2.0.1)
2122
dnsruby (1.61.5)
2223
simpleidn (~> 0.1)
2324
em-websocket (0.5.2)
@@ -90,6 +91,7 @@ GEM
9091
html-pipeline (2.14.0)
9192
activesupport (>= 2)
9293
nokogiri (>= 1.4)
94+
htmlcompressor (0.4.0)
9395
http_parser.rb (0.6.0)
9496
i18n (0.9.5)
9597
concurrent-ruby (~> 1.0)
@@ -130,6 +132,12 @@ GEM
130132
jekyll-mentions (1.6.0)
131133
html-pipeline (~> 2.3)
132134
jekyll (>= 3.7, < 5.0)
135+
jekyll-minifier (0.1.10)
136+
cssminify2 (~> 2.0)
137+
htmlcompressor (~> 0.4)
138+
jekyll (>= 3.5)
139+
json-minify (~> 0.0.3)
140+
uglifier (~> 4.1)
133141
jekyll-optional-front-matter (0.3.2)
134142
jekyll (>= 3.0, < 5.0)
135143
jekyll-paginate (1.1.0)
@@ -199,6 +207,9 @@ GEM
199207
gemoji (~> 3.0)
200208
html-pipeline (~> 2.2)
201209
jekyll (>= 3.0, < 5.0)
210+
json (2.5.1)
211+
json-minify (0.0.3)
212+
json (> 0)
202213
kramdown (2.3.1)
203214
rexml
204215
kramdown-parser-gfm (1.1.0)
@@ -256,6 +267,8 @@ GEM
256267
ethon (>= 0.9.0)
257268
tzinfo (1.2.9)
258269
thread_safe (~> 0.1)
270+
uglifier (4.2.0)
271+
execjs (>= 0.3.0, < 3)
259272
unf (0.1.4)
260273
unf_ext
261274
unf_ext (0.0.7.7)
@@ -276,6 +289,7 @@ DEPENDENCIES
276289
git
277290
github-pages
278291
jekyll-feed
292+
jekyll-minifier
279293
jekyll-sitemap
280294
mgem
281295
yard-coderay

‎_config.dev.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
jekyll-minifier:
2+
exclude: "*"

‎_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ repository: https://github.com/mruby/mruby.github.io
1313
include: _index.html
1414
plugins:
1515
- jekyll-feed
16+
- jekyll-minifier
1617
- jekyll-sitemap
1718
exclude:
1819
- CODEOWNERS

0 commit comments

Comments
 (0)
Please sign in to comment.