svg-viewbox-loader
v1.0.0
Published
## Install
Downloads
4
Readme
svg-viewbox-loader
Install
npm install svg-viewbox-loader --save-dev
Usage
<svg viewBox={require(`!svg-viewbox-loader!../images/icon.svg`)}>
...
</svg>
Note: Prefix !
in !svg-viewbox-loader!
overrides all other loaders.
Can also be used with https://github.com/kisenka/svg-sprite-loader.