Skip to content

Commit 52a293a

Browse files
committed
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 03e8262 commit 52a293a

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

Diff for: Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ gem 'github-pages', group: :jekyll_plugins
55
group :jekyll_plugins do
66
gem 'jekyll-avatar'
77
gem 'jekyll-feed'
8+
gem 'jekyll-minifier'
89
gem 'jekyll-sitemap'
910
end
1011

Diff for: Gemfile.lock

+14
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)
@@ -277,6 +290,7 @@ DEPENDENCIES
277290
github-pages
278291
jekyll-avatar
279292
jekyll-feed
293+
jekyll-minifier
280294
jekyll-sitemap
281295
mgem
282296
yard-coderay

Diff for: _config.dev.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
jekyll-minifier:
2+
exclude: "*"

Diff for: _config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ include: ['_index.html']
1414
plugins:
1515
- jekyll-avatar
1616
- jekyll-feed
17+
- jekyll-minifier
1718
- jekyll-sitemap
1819
exclude:
1920
- CODEOWNERS

0 commit comments

Comments
 (0)