title: Convert Vue component to base64
body: <p>I have a library of icons (icon system) in svg. Each svg has his own component inside Vue in the same way as <a href="https://github.com/sdras/vue-sample-svg-icons" rel="nofollow noreferrer">Sarah Drasner's icon system</a>.</p>
  
  <p>I want to import an svg into a js library which allow only icon provided with url. I could have a separate svg file, but I want to style dynamically the fill color with my color system.
  The only way I've found is to render and encode the component into base64.</p>
  
  <p>I've found a <a href="https://gist.github.com/kevinweber/3c519c32db6c976e9cbb5565dc3822f1" rel="nofollow noreferrer">simple helper for React</a>, but I'm struggling to reproduce the idea with Vue, Vue.Compile, Render, etc.</p>