Answer the question
In order to leave comments, you need to log in
Gulp-webp-html: how to make a line break when outputting code in html?
Good afternoon!
The function inside gulp-webp-html returns this line:
return '<picture><source srcset="' + url + '" type="image/webp">' + imgTag + '</picture>';
<picture>
<source srcset="url" type="image/webp">'
<img src="" width="" height="" alt="">
</picture>
Answer the question
In order to leave comments, you need to log in
return '<picture><source srcset="' + url + '" type="image/webp">\n' + imgTag + '</picture>';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question