map each file in a stream into multiple files that are piped out
$ npm install --save-dev gulp-flatmap
var gulp = ;var flatmap = ;var uglify = ;var path = ;var concat = ;gulp;
The flatmap method takes one argument, a function. This function is called once for each file piped to
flatmap and is passed a stream as its first argument and the vinyl file as its second argument. The stream contains only one file.
You can now pipe this stream through as many steps as you want, before returning it from the function. All the streams returned from
flatmap will be combined and their contents will be emited by
MIT © Marius Gundersen