'Gulp - is there a way to add a hint or config to skip a tag and leave src="{{myImg}}"?

I'm trying to pack/minify a template, which should preserve Handlebars vars in it.

I can set something like Hello \{{personName}} and it preserves Handlebars vars and {{#if ...}} logic as I need it.

But for images, I need to use src="{{myImg}}" and can't seem to make Gulp ignore it. It always tries to find the asset and pack it.

I end up doing src="" and later manually editing the built file, but I'd like to stop doing that.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source