-
Notifications
You must be signed in to change notification settings - Fork 12
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:
- install and image optimization npm package ( e.g. https://github.com/bem-archive/image-optim)
- create src/images and add the image there
- add command in package.json to run the contents of src/images through the image optim package, and output into build/images
- 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.