As the title states, my font awesome (v4.5.0) will not load if I set BundleTable.EnableOptimizations = true;
. When it is set to false
the file loads fine.
I have checked out a bunch of google and stackoverflow posts and all of them say I need to add CssRewriteUrlTransform()
to my bundle config. I did that, so now my font awesome bundle looks like this:
bundles.Add((new StyleBundle("~/Content/fontawesome").Include("~/Content/font-awesome.css", new CssRewriteUrlTransform())));
I have ensured the file exists and is in the correct location, but as I mentioned earlier it loads up fine when optimizations are disabled.
Is there anything else I can try?