0.0.4 • Published 4 years ago

twemoji-loader v0.0.4

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

Twemoji Loader (replaces emojis to twemojis)

A webpack loader that replaces standard Unicode emojis with Twemoji on img elements.

Basic Usage

Install:

npm install --save-dev twemoji-loader

Add the loader and plugin to your webpack config:

const webpackConfig = {
  loaders: [{
    test: /\.jsx$/,
    loader: 'twemoji-loader'
  }],
}

Options

The loader accepts all Twemoji options

Example:

const webpackConfig = {
  loaders: [{
    test: /\.jsx$/,
    loader: 'twemoji-loader',
    options: {
      folder: 'svg',
      ext: '.svg'
    }
  }],
}