When I was writing the last blog post, it occurred to me that I'm still optimizing images by hand. (blogging-driven development, or BDD, if you will)I promptly prompted Cursor to add simple image optimization to the build script. With a little bit of (minimum viable) handholding, here is the result. // Optimize images losslessly function optimizeImages() { const imgDir = join(OUT_DIR, 'img'); if (!existsSync(imgDir)) return; const images = readdirSync(imgDir).filter(f => /\. But it's dead simple, can be changed at any time, and in the spirit of 80/20 it's just perfect for me.