Our current approach involves bundling Bootstrap files in the following manner:
public class BundleConfig
{
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/Site.css"));
}
}
We then apply these bundles to our HTML files using the command:
@Scripts.Render("~/bundles/bootstrap")
However, we are now looking to gradually move away from Bootstrap as we have brought onboard a UX/UI expert who prefers not to use it.
Is there a way to reverse the @Scripts.Render command or to apply Bootstrap only to a specific section of a view? Does the @Scripts.Render command affect all child partial views?