4

I am working on a project using Jekyll and as a part of that, there is the need to minify HTML-CSS-JS. Is JS minification possible as in-build in jekyll? This might be a very basic question. But being a newbie to jekyll, any help is appreciated.

kmg
  • 499
  • 3
  • 16
  • Google suggests that https://github.com/digitalsparky/jekyll-minifier and https://github.com/gjtorikian/jekyll-jsminify and https://github.com/jekyll/jekyll/issues/476 might be useful starting points. – msanford Oct 31 '17 at 15:31

2 Answers2

3

You have to use a plugin, AFAIK.

According to this thread you should use the Jekyll Assets plugin.

Mr. Hugo
  • 11,887
  • 3
  • 42
  • 60
0

You can try use minifier that I recently developed https://github.com/Mendeo/jekyll-minifier. It is written purely on liquid, so you do not need to install any additional gems and it is fully compatible with GitHub Pages.