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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -