T
T
taki1542016-10-18 11:34:07
HTML
taki154, 2016-10-18 11:34:07

Is there a plugin for gulp that gives width and height attributes to img tags on static pages?

Good afternoon! There is a static site with a lot of text and graphics. There was a need to put down the width and height attributes for the img tags.
The static is collected on gulp. Perhaps there is a ready-made solution on gulp plugins that allows you to look at the folder with the image by src, take its dimensions and add them to the image attributes?
Active googling hasn't helped yet.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
frontender, 2016-10-18
@frontender

https://www.npmjs.com/package/gulp-dom can this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question