How I optimize images and SVG
¶ Small amounts of JPG and PNG
¶ Bigger (moderate) amounts of JPG and PNG
Bake in imagemin into whatever build process the project uses.
¶ Big amounts of JPG and PNG
¶ Small amounts of SVG
¶ Bigger amounts of SVG
Bake in SVGO into whatever build process the project uses. In the past, this included using webpack and Gulp plugins built on top of it. This approach should scale to very large amounts of SVG.