grunt-usemin icon indicating copy to clipboard operation
grunt-usemin copied to clipboard

Allow patterns to return multiple filenames

Open aendra-rininsland opened this issue 11 years ago • 4 comments

As per #428, it's currently not possible to write a pattern to parse an attribute with multiple filenames. The best example would be srcset, due to its comma-separated format:

srcset="[email protected] 2x, [email protected] 4x, [email protected] ...

As requested by @sindresorhus in #457, I'm separating this into its own issue.

aendra-rininsland avatar Oct 21 '14 15:10 aendra-rininsland

any news about this feature ? is there any workaround to replace image url with the revved version on srcset attribute ?

xpicio avatar Feb 21 '15 15:02 xpicio

#457 is merged.

stephanebachelier avatar Feb 21 '15 15:02 stephanebachelier

sorry, i mean srcset with multiple values as follows:

<img src="/images/logo.jpg"
                   srcset="/images/logo.jpg 213w, /images/logo-2x.jpg 425w, /images/logo-3x.jpg 850w"
                   sizes="213px">

xpicio avatar Feb 21 '15 15:02 xpicio

@xpicio I was only saying that #457 which is about adding support has been merged. But support is for now limited to only one value in srcset. We still need to fix this issue to support multiple values.

stephanebachelier avatar Feb 21 '15 16:02 stephanebachelier