Open iDVB opened 1 year ago
Question: How should we handle dynamically importing in a directory of images?
Eg. This first one would fail, where the second one would succeed.
const stuff = "tree.jpg"; const stuff2 = "?sizes=375"; return (<Picture src={[ require(`../assets/images/${stuff}${stuff2}`), require(`../assets/images/${stuff}`), ]} breakpoints={[768]} />)
Question: How should we handle dynamically importing in a directory of images?
Eg. This first one would fail, where the second one would succeed.