component-data-uri
A plugin to transpile image files to data URI for component builder
Install
npm install component-data-uri
Usage
Add image files to the dataURIs
array in your component.json
:
Use the plugin during your build process:
var Builder = fs = dataUri = ; var builder = __dirname; builder; builder;
Or
component build -u component-data-uri
And then require the files in your javascript:
var img = ;