I have the following bundle configured in BundleConfig.cs:
bundles.Add(new StyleBundle(\"~/bundles/css\").Include(
\"~/assets/bootstrap
After fighting against this issue for several hours, I recommend that you try this as well:
Add this at the very beginning of the view you are using your bundle:
@{ BundleTable.EnableOptimizations = true; }
Reset IIS
In my case somewhere in my solution was changing "BundleTable.EnableOptimizations" from true to false. When I force that to TRUE right before the bundle is used, I got this working.
After I noticed it works, I moved that into a static method at my BundleConfig class:
public static void EnableOptimizations()
{
#if DEBUG
BundleTable.EnableOptimizations = false;
#else
BundleTable.EnableOptimizations = true;
#endif
}
So I can call it from the view and have it minify disabled for developers
@{
BundleConfig.EnableOptimizations();
}