Including a directory with many images in ReasonReact


This is similar to How can I require a image without using [%raw ], but instead of a single image, I have a directory with several images in it, and would like a way to tell webpack to include the entire directory and its images.

Is there an easy way to do this in a component?