@leiops/icon-loader
v1.0.5
Published
An svg loader for use with @leiops/icon.
Downloads
1
Readme
@leiops/icon-loader
An SVG loader which turns plain SVG files into React JSX. Made for use with @leiops/icon.
Because this emits JSX files, you will likely want to chain it with babel-loader
in order to generate a useable output.
...
module: {
...
rules: [
...
{
test: /\.svg$/,
use: [
'babel-loader',
'@leiops/icon-loader',
]
},
...
],
...
},
...