Webpack: move Twemoji icons back to CopyPlugin

This commit is contained in:
Alex Gleason
2021-09-12 10:51:58 -05:00
parent 139b47eb22
commit 5eab5ec0a5
6 changed files with 48 additions and 19 deletions

View File

@ -7,6 +7,7 @@ import classNames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { supportsPassiveEvents } from 'detect-passive-events';
import { buildCustomEmojis } from '../../emoji/emoji';
import { joinPublicPath } from 'soapbox/utils/static';
const messages = defineMessages({
emoji: { id: 'emoji_button.label', defaultMessage: 'Insert emoji' },
@ -357,7 +358,7 @@ class EmojiPickerDropdown extends React.PureComponent {
<img
className={classNames('emojione', { 'pulse-loading': active && loading })}
alt='😂'
src={require('twemoji/assets/svg/1f602.svg')}
src={joinPublicPath('packs/emoji/1f602.svg')}
/>
</div>