Create json file mapping sources to their content. Modified from https://github.com/danielhusar
Install
npm install --save-dev gulp-file-content-to-json
Example
var gulp = ;var toJson = ; gulp;
var gulp = ;var toJson = ; gulp;
This will create output.json file in which the (key, value) pair corresponds to the input filename and the input file contents, respectively.
Options
filename
Type: String
Default: 'output.json'
Filename where to save json file
relative
Type: Boolean
Default: 'false'
If the relative urls should be used
strip
Type: Regexp or String
Default: false
Pattern to strip from the files urls.
License
MIT © Krista Fryauff