wiledal / gulp-include

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

Add "include-if-exists" functionality #82

Open stefanozoffoli opened 7 years ago

stefanozoffoli commented 7 years ago

Hi and thank you for this library,

i'd like to have a directive that would include a file only if it exists. If it don't exists, it would fail silently.

Something like this:

//=include-if-exists vendor/vendor.js 

It would be really useful, so I could simply delete files that i don't need for a particular project.

Thank you