I’ve installed the jekyll-assets gem and added the config as shown in the README. When I build the site, the html files are all empty. Sass is getting built and images are being copied to the _site directory, but while the html files are getting created, they are not being passed to their layouts.
I haven’t been able to find a good tutorial for this plugin. Do you know of any?
Before adding this plugin, the site was working fine. If I remove the assets: settings from the config file, and remove all {% asset ... %} calls it still builds without problem.
If I do a verbose output when the Gem is present, there is nothing that is helpful. No errors, no warnings.
As to the title of the post, you are right, my problem is about HTML files so long as I’m using the Gem. Since I am looking for jekyll-assets to do image minification, but can’t get it to work, it seemed appropriate.
If are looking specifically at resizing images and not compressing other asset types, I have some Jekyll plugins linked here to recommend.
The jekyll-resize plugin (or my fork) works well for what I need it to. To resize images to say 800x600 at build time and embed to them easily as images in markdown. Check the start of my readme for installation and use. Or you can try the other plugin name.
Cheers Michael, but I’m specifically looking for compression/minification. I’ve already setup a test repo using some Gulp preprocessing, but just wanted to try a proof-of-concept using jekyll-assets. I’m open to other compression/minification utilities but wanted to give this Gem a go first.
The use-case has changed for the site in question so I no longer need to get this working. I may need to return to jekyll-assets one day, so it would be good for posterity to have some tutorial links here. In any event, thank you Ron and Michael for trying to help.