wiledal / gulp-include

Enables functionality similar to that of snockets / sprockets or other file insertion compilation tools.
158 stars 68 forks source link

Pre and post processing #68

Open vwochnik opened 8 years ago

vwochnik commented 8 years ago

I am missing pre and post processing functions for each included file. Those are required in my use case in order to prepare an arbitrary file to be inserted into javascript.

Something simple, like (contents, filename, extension) => contents would do the trick here. I have tried other solutions with temporary folders but that isn't working because the filenames are the same for multiple include paths where both files make it into the build.