1

In previous versions of Bootstrap, the BundleConfig in MVC 5 was:

   bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
              "~/Scripts/bootstrap.js",
              "~/Scripts/respond.js"));

And the ..\Content folder had the file: bootstrap.css

Now, after updating to Bootstrap version 3.3.4 I see the adtl files in the ..\Content folder:

bootstrap-theme.css and bootstrap-theme.css.map

The question is: Should these two files be added to the BundleConfig as follow?

   bundles.Add(new StyleBundle("~/Content/css").Include(
              "~/Content/bootstrap-theme.css",
              "~/Content/bootstrap-theme.css.map",
              "~/Content/bootstrap.css",
              "~/Content/site.css"));
Ben Junior
  • 2,449
  • 10
  • 34
  • 51

1 Answers1

2

bootstrap.theme.css is optional and is useful only if you want to change the default theme / roll a theme.

The .map.css file is only useful if you've also used the minified (.min.css) version of a css file - .map files are provided for debugging minified files.

So, unless you intend debugging and/or custom styling bootstrap, I would bundle just the ~/Content/bootstrap.min.css in the StyleBundle config and leave out the themes altogether.

Community
  • 1
  • 1
StuartLC
  • 104,537
  • 17
  • 209
  • 285
  • Thanks for the info. Would it be possible for you to also take a look at this question in the link below? http://stackoverflow.com/questions/28228501/bootstrap-not-working-on-vs-2013-after-update-to-version-3-3-1 – Ben Junior May 14 '15 at 20:13