Rewrite srcset url's to cdn url

Hello! i can replace file url’s via ‘file::url’, but how do i modify srcset() output from a image object with a plugin?

So $cdnUrl = $cdnOptions.‘./’.$path will convert.

You also need to modify the file::version component, see our CDN recipe:

Since srcset uses the thumbs method to create the srcset urls, this will then also fix your srcset issue.