image2svg-loader
v0.10.0
Published
Webpack loader for transforming image to svg (with embedded base64 image tag)
Downloads
5,084
Readme
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/,
],
},