vue-gallery
vue-gallery copied to clipboard
Modal is not working in production mode
I installed via npm install vue-gallery --save
as per the documentation. I got everything working great in my dev environment and after building my assets and pushing to production I saw that the modal didn't work. It showed a strange, un-styled "close" button.
As far as I can tell it seems like the dependency of the vue-gallery
component, blueimp-gallery
is not getting its styles loaded:
I tried to manually add blueimp-gallery
as my own dependency thinking for some reason it wasn't getting caught, but that isn't working either.
Any ideas?
i think you must write unique key and unique id on gallery element.
Do you use Tailwind and/or PurgeCSS? If yes, you need to whitelist the css selector like this:
whitelistPatternsChildren: [/^blueimp.+/]