Answer the question
In order to leave comments, you need to log in
Gulp-webp-in-html how to disable for svg images?
Is there a way (idea) how to add img tags that have src to svg images to exceptions for the gulp-webp-in-html plugin?
Here's what's happening now:
src:
<img class="social__img" src="assets/img/pinterest.svg" alt=Pinterest">
<picture>
<source srcset="assets/img/pinterest.svg" type="image/webp">
<img class="social__img" src="assets/img/pinterest.svg" alt="Pinterest">
</picture>
Answer the question
In order to leave comments, you need to log in
Idea:
fix the condition in the module, judging by the github there is no check by file type, I think where the url in the module is checked at all and check the file type
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question