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
Is there a way we can serve the background-images via a CDN. Currently the path in our styles are set to relative to the CDN which once comes to inline style doesn't work. If we can specify the full path to the images for the generated inline css would be great.
current : background:url(/img/banner/image.png)
expected which would work: background:url(https:/mycdn.com/img/banner/image.png)
Any suggestions please?
The text was updated successfully, but these errors were encountered:
We published a new prerelease version. You can now use the rebase option to specify/overwrite image paths. You even can define a transform function which will be called for every asset reference found in the stylesheet
You can install the new version with npm i critical@next
Thanks
Closing this for now but feel free to re-open if anything doesn't fit
Is there a way we can serve the background-images via a CDN. Currently the path in our styles are set to relative to the CDN which once comes to inline style doesn't work. If we can specify the full path to the images for the generated inline css would be great.
current :
background:url(/img/banner/image.png)
expected which would work:
background:url(https:/mycdn.com/img/banner/image.png)
Any suggestions please?
The text was updated successfully, but these errors were encountered: