Skip to content

Non SVG Image Optimization

Lara Schenck edited this page Mar 3, 2020 · 1 revision

(copied from a Slack thread)

There isn’t a workflow for non-SVG images as of now, but in general it would be:

  1. install and image optimization npm package ( e.g. https://github.com/bem-archive/image-optim)
  2. create src/images and add the image there
  3. add command in package.json to run the contents of src/images through the image optim package, and output into build/images
  4. create a JIRA ticket for moving that command to the larva binary

Alternatively, you can optimize the image yourself and add it to assets/public/ which is a dumping ground for assets outside of the build step.