bundles.Add(new StyleBundle("~/a/b/c")
.Include("~/Content/font-awesome.css", new CssRewriteUrlTransform()));
I have this bundling. The font-awesome css has a url defined as url('../fonts/fontawesome-webfont.eot?v=4.0.3')
which is valid when the css is located under "~/Content/font-awesome.css"
but now its located under "~/a/b"
But CssRewriteUrlTransform
does not kick in and rewrite path to url('../../fonts/fontawesome-webfont.eot?v=4.0.3')
Update: If I remove the .min file it CssRewriteUrlTransform
starts to work, bug in web optimization?