how to compress and minify assets using jekyll plugins

后端 未结 6 1708
滥情空心
滥情空心 2020-12-31 04:57

I have a simple test jekyll app like so:

index.html is:



        
6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-31 05:19

    Here's a summary of what I've found while solving this in 2014:

    Started with

    1. https://github.com/donaldducky/jekyll-cssminify

      Development was going well until it was beat by this project:

    2. http://www.matthodan.com/2012/11/22/jekyll-asset-pipeline.html

      ...which so far has been my favorite to implement, except it doesn't work now and it looks like development has been halted, so I was forced to turn to

    3. https://github.com/envygeeks/jekyll-assets

      ...which again, beats #2 but is just a touch trickier to use. Anyway, that's the only one that works, so that's what I'm using now.

提交回复
热议问题