Import all images from a folder
Unanswered
Siberian posted this in #help-forum
SiberianOP
How to statically import all images from a folder? I can successfully import one using
import statement but I would like to get a map of filename -> image, hopefully at build time2 Replies
SiberianOP
I can just write an
import manually for each image but surely there's a better way 🫠SiberianOP
... ended up writing a script for
npm run that generates the imports and exports for me into a file