We were facing the same issue for asp.net mvc with angular project. Issue was for ag-grid base 64 image which was not showing in prod environment.
As a workaround we have removed CssRewriteUrlTransform() & changed the virtual path to match with actual physical path.
Old code
bundles.Add(new StyleBundle("~/bundles/styles").Include("~/Content/Site.css", new CssRewriteUrlTransform());
New code change
bundles.Add(new StyleBundle("~/dist/styles").Include("~/Content/Site.css");
Initially base64 image was looking for bundles folder which was not existing.
Old
background: transparent url(data:image/svg+xml;base64,PHN2ZyB3a...)
was translated to
background: transparent url(/dist/data:image/svg+xml;base64,PHN2ZyB3a...)
After making the mentioned changes base 64 image was not appended with any path.