joypixels / emojione

[Archived] The world's largest independent emoji font. Maintained at https://github.com/joypixels/emoji-toolkit.
https://www.joypixels.com
Other
4.46k stars 535 forks source link

Problem with brunch build --production #592

Open elomarns opened 6 years ago

elomarns commented 6 years ago

Hi!

I'm using emojione NPM package with Brunch, and everything works fine on development. However, the same code that works on development doesn't work on production, when I run brunch build --production.

Below are a simplified version of the mentioned code:

let emojione = require('emojione');
let emojiAsUnicode = '⭐🔫👻🔪';
let emojiAsImage = emojione.unicodeToImage(emojiAsUnicode);
// The result is: <img class="emojione" alt="⭐" title=":star:" src="https://cdn.jsdelivr.net/emojione/assets/3.1/png/32/2b50.png"/>🔫👻🔪

Is there a way to use emojione with brunch build --production?

Thanks in advance.