I had a working site before applying minification and bundling. I did not write the original CSS. The problem stemmed from three @import url
statements being used to bring in Google fonts.
In an effort to fix the problem, I decided to remove the @import url
's from the relevant CSS file and add them individually in my BundleConfig.cs class. However, I cannot figure out the syntax to make this happen:
public static void RegisterBundles(BundleCollection bundles)
{
....
bundles.UseCdn = true;
var templateOriginalPath1
= "http://fonts.googleapis.com/css?family=Lobster";
var templateOriginalPath2 =
"http://fonts.googleapis.com/css?family=Oswald:400,700,300";
var templateOriginalPath3
= "http://fonts.googleapis.com/css?family
=Ubuntu:300,400,500,700,300italic,400italic,700italic";
....
bundles.Add(new StyleBundle("~/bundles/templateOriginal1",
templateOriginalPath1));
bundles.Add(new StyleBundle("~/bundles/templateOriginal2",
templateOriginalPath2));
bundles.Add(new StyleBundle("~/bundles/templateOriginal3",
templateOriginalPath3));
}