so I have a laravel project, which is nearly finished and we just transferred all images to the S3 bucket and connected an IMGIX to the S3 buckets so all images are served from the S3 through IMGIX which also enables to do all sorts of customizations on the flight.
However, the images in the CSS are with relative paths, for an example
.bg-image {
background: url(/storage/icons/icon.svg);
}
And the images in the views, are like this:
<img class="icon" src="{{ asset('storage/icons/icon-white.svg') }}" />
Is there any way I can dynamically add IMGIX url (www.domain.imgix.net) in front of all images on the site (views + CSS) so they all go through the IMGIX?