3 ms·
One of my browser tabs is always open to Squoosh, it's an awesome tool. If only I could hook Squoosh in during Hugo site builds...(looks like that might be poss
by late_groomer 5y ago
One of my browser tabs is always open to Squoosh, it's an awesome tool. If only I could hook Squoosh in during Hugo site builds...(looks like that might be possible with their CLI, hopefully some whip-smart kid with lots of free-time figures it out for me).
- ac29 5y agoSeems like it would be fairly trivial to write a bash script that ran the hugo build, then optimized the images with the squoosh cli. Squoosh is available in npm, which should make this pretty easy: https://www.npmjs.com/package/@squoosh/cli https://www.npmjs.com/package/@squoosh/cli