Does exactly as it says on the tin. A gulp plugin to generate datauris for images.
I use Yarn, and love it. I totally recommend using it as well!
To install via Yarn:
$ yarn add gulp-generate-image-data-uri -D
To install via npm:
$ npm install gulp-generate-image-data-uri -D
As with most Gulp plugins, this is relatively easy to set up.
const gulp = ;const dataURI = ;gulp;
This will output a file, img.txt, which contains the data-uri.
Outputs datauris to JS instead, one defintion per file. The format being:
const camelCaseFileName = 'dataURI';
This plugin would not be possible without the Node module datauri, which is used to generate the datauris
MIT © Aaron Kelly-Barker