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.
Asked
Active
Viewed 2,745 times
4
-
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 Answers
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.

Александр Меняйло
- 41
- 3