Twitter bootstrap 更新到引导版本3.3.4后,BundleConfig.cs中需要添加哪些文件
在以前版本的引导中,MVC 5中的BundleConfig是:Twitter bootstrap 更新到引导版本3.3.4后,BundleConfig.cs中需要添加哪些文件,twitter-bootstrap,asp.net-mvc-4,Twitter Bootstrap,Asp.net Mvc 4,在以前版本的引导中,MVC 5中的BundleConfig是: bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js", "~/Scripts/respond.js")); ..\Content文件夹中有一个文件:bootstrap.css 现在,更新到Bootstrap版本3.3.4后,我在..\Content文件夹
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));
..\Content文件夹中有一个文件:bootstrap.css
现在,更新到Bootstrap版本3.3.4后,我在..\Content文件夹中看到adtl文件:
bootstrap-theme.css和bootstrap-theme.css.map
问题是:这两个文件是否应按如下方式添加到BundleConfig
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
并且仅当您想要更改默认主题/滚动主题时才有用
.map.css
文件只有在您还使用了css文件的缩小(.min.css
)版本时才有用-提供了.map
文件
因此,除非您打算调试和/或自定义样式引导,否则我将只捆绑
样式捆绑
配置中的~/Content/bootstrap.min.css
,而完全忽略主题。谢谢您提供的信息。您是否也可以在下面的链接中查看这个问题?