# Webpack
- How to optimize images to webp and use them in components?
- https://stackoverflow.com/questions/58827843/webpack-how-to-convert-jpg-png-to-webp-via-image-webpack-loader (opens new window)
- https://github.com/GaoYYYang/image-optimize-loader#3-transform-your-pngjpg-into-webp (opens new window)
- Then use
d3
to inject images data to gallery section
# Use cases
- Make a dynamic image gallery using
flex
andgrid
- Deal with images assets, compress and resize them. and other optimizations