using System.Web; using System.Web.Optimization; namespace Epost.TestToolsWeb { public class BundleConfig { // 有关绑定的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { BundleTable.EnableOptimizations = false; bundles.Add(new ScriptBundle("~/Bundles/bootstrap").Include( "~/Content/bootstrap/js/bootstrap.min.js")); bundles.Add(new StyleBundle("~/Bundles/LoginCss").Include( "~/Content/bootstrap/css/bootstrap.min.css", "~/Content/css/login.css")); #region bundles.Add(new StyleBundle("~/Bundles/SiteCss").Include( "~/Content/css/Site.css", "~/Content/css/TopBar.css", "~/Content/css/Header.css", "~/Content/css/Menu.css", "~/Content/css/Main.css", "~/Content/css/Accordion.css", "~/Content/css/Footer.css")); bundles.Add(new StyleBundle("~/Bundles/EasyUICss").Include( "~/Content/easyui/default/easyui.css", "~/Content/easyui-extension/jeasyui.extensions.min.css")); bundles.Add(new ScriptBundle("~/Bundles/Jquery").Include( "~/Scripts/jquery/jquery-1.11.1.js", "~/Scripts/jquery/jquery.validate*", "~/Scripts/jquery/jquery.unobtrusive*", "~/Scripts/jquery/mvcvalidationextensions.unobtrusive.js", "~/Scripts/jquery/knockout-{version}.js", "~/Scripts/jquery/jquery.jdirk.js")); bundles.Add(new ScriptBundle("~/Bundles/EasyUIJS").Include( "~/Scripts/jquery-easyui/jquery.easyui.min.js", "~/Scripts/jquery-easyui/easyui-lang-zh_CN.js")); bundles.Add(new ScriptBundle("~/Bundles/Accordion").Include( "~/Scripts/accordion.js")); #endregion bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js", "~/Scripts/respond.js")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/site.css")); //// #region JQuery+EasyUI bundles.Add(new StyleBundle("~/bundles/jeasyui-css").Include( "~/Content/easyui/default/easyui.css", "~/Content/easyui/icon.css", "~/Content/easyui/color.css")); bundles.Add(new ScriptBundle("~/bundles/jquery-validate").Include( //"~/Scripts/jquery/jquery-1.11.1.js", "~/Scripts/jquery/jquery.unobtrusive*", "~/Scripts/jquery/jquery.validate*", "~/Scripts/jquery/mvcvalidationextensions.unobtrusive.js")); bundles.Add(new ScriptBundle("~/bundles/jeasyui-js").Include( "~/Scripts/jquery-easyui/easyui-lang-zh_CN.js", "~/Scripts/jquery/jquery.jdirk.js" )); #endregion bundles.Add(new ScriptBundle("~/bundles/knockout/script").Include( "~/Scripts/jquery/knockout-{version}.js")); #region JEasyUI扩展 bundles.Add(new StyleBundle("~/bundles/jeasyui-extensions-css").Include( "~/Content/easyui-extension/icon-standard.css", "~/Content/easyui-extension/jeasyui.extensions.min.css")); bundles.Add(new ScriptBundle("~/bundles/jeasyui-extensions-js").Include( "~/Scripts/plugins/My97DatePicker/WdatePicker.js", "~/Scripts/jquery-easyui-extension/jeasyui.extensions.all.min.js", "~/Scripts/jquery-easyui-extension/jeasyui.myextendsions.js")); #endregion bundles.Add(new StyleBundle("~/bundles/sitecss").Include( "~/Content/sites/Site.css")); } } }