I am using lightbox with NPM and webpack.
I import the SCSS like so, as I would normally do
//lightbox2
@import '~lightbox2/dist/css/lightbox.min';
but webpack then gives me this error
webpack_1 | ERROR in ./app/app.scss (/node_modules/css-loader/dist/cjs.js!/node_modules/postcss-loader/src!/node_modules/sass-loader/dist/cjs.js!./app/app.scss)
webpack_1 | Module not found: Error: Can't resolve '../images/close.png' in '/app/assets/app'
webpack_1 | @ ./app/app.scss (/node_modules/css-loader/dist/cjs.js!/node_modules/postcss-loader/src!/node_modules/sass-loader/dist/cjs.js!./app/app.scss) 33:37-67
specifically, it cannot resolve the image as Lightbox.min.css includes a reference to a '../images/close.png'
Now, Im wondering where to put these images in my folder config so that they do get resolved by webpack.
Surely it should recognise / load from node_modules automatically, but Ive tried to put a images folder with the relevant images in the app folder and it does not resolve
Any ideas would be appreciated.