How can I also apply the same pattern that was applied to the src attribute in the srcset attribute in order to produce the following code:
<img src="images/calculo.47c12a85.jpg" srcset="images/calculo.47c12a85.jpg 360w, images/calculo.47c12a85.jpg 830w" sizes="(min-width: 992px) 360px, calc(100vw - 30px)" class="wp-post-image" alt="Cálculo Estrutural" width="360" height="180">
I have the following configuration in my gruntfile:
When I run my build task to dist it transforms this:
to this:
<img src="images/calculo.47c12a85.jpg" srcset="images/calculo.jpg 360w, images/calculo.jpg 830w" sizes="(min-width: 992px) 360px, calc(100vw - 30px)" class="wp-post-image" alt="Cálculo Estrutural" width="360" height="180">
How can I also apply the same pattern that was applied to the src attribute in the srcset attribute in order to produce the following code:
<img src="images/calculo.47c12a85.jpg" srcset="images/calculo.47c12a85.jpg 360w, images/calculo.47c12a85.jpg 830w" sizes="(min-width: 992px) 360px, calc(100vw - 30px)" class="wp-post-image" alt="Cálculo Estrutural" width="360" height="180">