rschmukler / gulp-insert

string mutation library for gulp
MIT License
61 stars 6 forks source link

Filename and path #6

Closed mykyta-shulipa closed 10 years ago

mykyta-shulipa commented 10 years ago

Could you, please, give an example for use filename and path inside the insert function? I saw commit b2888b82d617b1152b027ad9a4578a477c45987b, but can't understand how it work...

rschmukler commented 10 years ago
.pipe(insert.prepend(function(file) {
  return '// This was in file ' + file.path;
})
rschmukler commented 10 years ago

Re-open if you need anything else