Tools like Imagemin allow easy automated compression of images without having to specify quality settings or parameters.
import imageUrl from './image.png'; console.log(imageUrl);
index.js, and an optimized version of
image.png. The image size should be reduced compared to its original source version.