asp.net mvc 4 - What files need to be added in BundleConfig.cs after updating to Bootstrap version 3.3.4 -
in previous versions of bootstrap, bundleconfig in mvc 5 was:
bundles.add(new scriptbundle("~/bundles/bootstrap").include( "~/scripts/bootstrap.js", "~/scripts/respond.js"));
and ..\content folder had file: bootstrap.css
now, after updating bootstrap version 3.3.4 see adtl files in ..\content folder:
bootstrap-theme.css , bootstrap-theme.css.map
the question is: should these 2 files added bundleconfig follow?
bundles.add(new stylebundle("~/content/css").include( "~/content/bootstrap-theme.css", "~/content/bootstrap-theme.css.map", "~/content/bootstrap.css", "~/content/site.css"));
bootstrap.theme.css
is optional , useful if want change default theme / roll theme.
the .map.css
file useful if you've used minified (.min.css
) version of css file - .map
files provided debugging minified files.
so, unless intend debugging and/or custom styling bootstrap, bundle ~/content/bootstrap.min.css
in stylebundle
config , leave out themes altogether.
Comments
Post a Comment