how to compress and minify assets using jekyll plugins

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

I have a simple test jekyll app like so:

index.html is:



        
6条回答
  •  情歌与酒
    2020-12-31 05:31

    I recommend the Jekyll Asset Pipeline gem for this. It supports any language (e.g. Scss, Less, CoffeeScript, Erb, etc.) and has a bunch of features (e.g. asset tagging, compression, gzipping, etc.) that set it apart. It also seems to be the fastest growing Jekyll-related gem these days, which I take to mean that it is gaining traction in the community.

提交回复
热议问题