0.0.4 • Published 6 years ago
twemoji-loader v0.0.4
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-loaderAdd 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'
    }
  }],
}