You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.
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">
The text was updated successfully, but these errors were encountered:
brunocasarotti
changed the title
Configuring regex in usemin task to apply minifcation to srcset attribute
[Question] Configuring regex in usemin task to apply minifcation to srcset attribute
Jan 13, 2017
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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">
The text was updated successfully, but these errors were encountered: