jm-david / emoji-mart-vue

One component to pick them all 👊🏼
https://jm-david.github.io/emoji-mart-vue
BSD 3-Clause "New" or "Revised" License
603 stars 82 forks source link

Sheet files are too big #25

Closed apotheosis91 closed 6 years ago

apotheosis91 commented 6 years ago

Hello, Thank you for making this awesome Fork!

Sheet files loaded with Emoji Mart Vue by default has very big size, for example 7.5MB for 64x64 twemoji and 13.3MB for apple (but readme.md says: 1.82MB and 2.94MB respectively).

1

I think this is because they are taken from the wrong directory on unpkg. I found this line: https://unpkg.com/emoji-datasource-${set}@${EMOJI_DATASOURCE_VERSION}/img/${set}/sheets/${sheetSize}.png

But in the React's Emoji Mart, sheets are taken from (note sheets-256): https://unpkg.com/emoji-datasource-${set}@${EMOJI_DATASOURCE_VERSION}/img/${set}/sheets-256/${sheetSize}.png

So, when I change sheets to sheets-256 it seems the files back to normal size as documented.

jm-david commented 6 years ago

Have published update as version 2.6.4