vue-gallery icon indicating copy to clipboard operation
vue-gallery copied to clipboard

Modal is not working in production mode

Open swthate opened this issue 5 years ago β€’ 2 comments

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:

image

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?

swthate avatar Oct 16 '19 21:10 swthate

i think you must write unique key and unique id on gallery element.

omer-itc avatar Oct 29 '19 15:10 omer-itc

Do you use Tailwind and/or PurgeCSS? If yes, you need to whitelist the css selector like this:

whitelistPatternsChildren: [/^blueimp.+/]

mornir avatar Nov 12 '19 17:11 mornir