wiledal / gulp-include

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

includeFileExistsIgnore #66

Closed ange007 closed 8 years ago

ange007 commented 8 years ago

Ignoring of check of existence of the including file. It happens it is useful for "combined" modules. Which gather from different sets of files. Though it is possible and it isn't absolutely correct.

wiledal commented 8 years ago

I like this idea, I've run into use cases for this myself. However I think the param should be more basic. I might just go with includeErrors: false.

ange007 commented 8 years ago

Here I likely not the adviser. I don't know as it will be better.

wiledal commented 8 years ago

Added hardFail as a param now which toggles the error throwing. Errors are soft by default now, so if you need errors to be thrown, add the hardFail: true param.