In a rails 7.1 project I'm using importmap to load lightbox2
importmap.rb
pin "lightbox2", to: "https://ga.jspm.io/npm:[email protected]/dist/js/lightbox.js"
This works but none of the navigation images are being loaded. Such as the X < > overlayed onto the image when enlarged.
The html is referencing them as lightbox2/close.png - I've cloned the lightbox2 gem and manually copied the images into the app/assets/images/lightbox2 directory but this doesn't feel like the correct solution as it doesn't work - the url needs assets prefixing to it.
How should I include the Lightbox2 navigation images in a rails 7.1 project?