51 lines
2.0 KiB
C#
51 lines
2.0 KiB
C#
using System.Web.Optimization;
|
|
|
|
namespace WX.CRM.WEB
|
|
{
|
|
public class BundleConfig
|
|
{
|
|
// 有关 Bundling 的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=254725
|
|
public static void RegisterBundles(BundleCollection bundles)
|
|
{
|
|
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
|
|
"~/Scripts/jquery-{version}.js"));
|
|
|
|
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
|
|
"~/Scripts/jquery-ui-{version}.js"));
|
|
|
|
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
|
|
"~/Scripts/jquery.unobtrusive*",
|
|
"~/Scripts/jquery.validate*",
|
|
"~/Scripts/jquery.metadata.js"));
|
|
|
|
|
|
//string homeJs = DataCacheHelper.GetCache().GetValue_Parameter(WX.CRM.Model.Enum.Parameter.Sys_HomeTab_Javascript);//从配置中获取js文件名称
|
|
//homeJs = string.IsNullOrEmpty(homeJs) ? "home.js" : homeJs;
|
|
|
|
//bundles.Add(new ScriptBundle("~/bundles/home").Include(
|
|
// "~/Scripts/op/" + homeJs + ""));
|
|
|
|
bundles.Add(new ScriptBundle("~/bundles/home").Include(
|
|
"~/Scripts/op/home.js"));
|
|
bundles.Add(new ScriptBundle("~/bundles/common").Include(
|
|
"~/Scripts/common.js"));
|
|
|
|
//easyui
|
|
bundles.Add(new StyleBundle("~/Content/themes/blue/css").Include("~/Content/themes/blue/easyui.css"));
|
|
|
|
|
|
|
|
|
|
bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));
|
|
// 使用要用于开发和学习的 Modernizr 的开发版本。然后,当你做好
|
|
// 生产准备时,请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
|
|
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
|
|
"~/Scripts/modernizr-*"));
|
|
|
|
bundles.Add(new ScriptBundle("~/bundles/colResizable").Include(
|
|
"~/Scripts/colResizable-1.6.js"));
|
|
|
|
|
|
}
|
|
}
|
|
} |