Hacker News new | ask | show | jobs
by late_groomer 1883 days 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).
1 comments

Seems 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