parcel-plugin-svg2
v1.0.1
Published
Turn SVG to Base64 and source code
Downloads
5
Readme
parcel-plugin-svg2
Turn SVG to Base64 and source code
Installation
npm install --save-dev parcel-plugin-svg2
Usage
import a from "a.svg";
console.log(a.source);
// <svg></svg>
console.log(a.base64);
// result: data:image/svg+xml;base64,xxxx....