image2svg-loader

0.10.0 • Public • Published

image2svg-loader

Webpack loader for transforming image to svg (with embedded base64 image tag)

Normaly combined with svg-sprite-loader, which has a bug that can not handle PNG.

Usage:

{
  test: /\.(png)$/,
  use: [
    {
      loader: 'svg-sprite-loader',
      options: {
        symbolId: 'icon-[name]',
      },
    },
    'image2svg-loader',
  ],
  include: [
    /icons/,
  ],
},

/image2svg-loader/

    Package Sidebar

    Install

    npm i image2svg-loader

    Weekly Downloads

    734

    Version

    0.10.0

    License

    MIT

    Last publish

    Collaborators

    • meowtec