svg-children-loader
v1.0.1
Published
A loader for webpack that enable extracting all child elements of svg file as a String.
Downloads
2
Readme
svg-children-loader
A loader for webpack that enable extracting all child elements of svg file as a String.
Install
$ npm install svg-children-loader --save-dev
Usage
module.exports = {
...,
module: {
rules: [
{
test: /\.svg$/,
use: [
{
loader: 'svg-children-loader',
options: {
extractAttributes: ['viewBox']
}
},
]
}
]
}
}