// For more information on Bundling, visit 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.validate*")); bundles.Add(new /*Script*/Bundle("~/bundles/expressive").Include( // ScriptBundle uses JsMinify transformation from System.Web.Optimization by default (alternatively, to pick already provided minified version, use Bundle) "~/Scripts/expressive.annotations*")); bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Content/themes/base/jquery.ui.selectable.css", "~/Content/themes/base/jquery.ui.accordion.css", "~/Content/themes/base/jquery.ui.autocomplete.css", "~/Content/themes/base/jquery.ui.button.css", "~/Content/themes/base/jquery.ui.dialog.css", "~/Content/themes/base/jquery.ui.slider.css", "~/Content/themes/base/jquery.ui.tabs.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.progressbar.css", "~/Content/themes/base/jquery.ui.theme.css")); #if !DEBUG BundleTable.EnableOptimizations = true; // forces bundling in development phase, where it's disabled by default (here, enabled for non-debug configuration only) // (web.[mode].config transformations are normally executed for deploying/publishing, not just for changing the active configuration in VS) #endif }
// For more information on Bundling, visit 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*")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Content/themes/base/jquery.ui.selectable.css", "~/Content/themes/base/jquery.ui.accordion.css", "~/Content/themes/base/jquery.ui.autocomplete.css", "~/Content/themes/base/jquery.ui.button.css", "~/Content/themes/base/jquery.ui.dialog.css", "~/Content/themes/base/jquery.ui.slider.css", "~/Content/themes/base/jquery.ui.tabs.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.progressbar.css", "~/Content/themes/base/jquery.ui.theme.css")); }
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkID=303951 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include( "~/Scripts/WebForms/WebForms.js", "~/Scripts/WebForms/WebUIValidation.js", "~/Scripts/WebForms/MenuStandards.js", "~/Scripts/WebForms/Focus.js", "~/Scripts/WebForms/GridView.js", "~/Scripts/WebForms/DetailsView.js", "~/Scripts/WebForms/TreeView.js", "~/Scripts/WebForms/WebParts.js")); // Order is very important for these files to work, they have explicit dependencies bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include( "~/Scripts/WebForms/MsAjax/MicrosoftAjax.js", "~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js", "~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js", "~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js")); // Use the Development version of Modernizr to develop with and learn from. Then, when you’re // ready for production, use the build tool at http://modernizr.com to pick only the tests you need bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); ScriptManager.ScriptResourceMapping.AddDefinition( "respond", new ScriptResourceDefinition { Path = "~/Scripts/respond.min.js", DebugPath = "~/Scripts/respond.js", }); }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js") .Include("~/Scripts/jquery.unobtrusive-ajax.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap") .Include("~/Scripts/bootstrap.js", "~/Scripts/respond.js", "~/Scripts/bootstrap-datepicker.js")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/datepicker.css", "~/Content/site.css")); bundles.Add(new ScriptBundle("~/liberty").Include( "~/Scripts/liberty.js")); // Set EnableOptimizations to false for debugging. For more information, // visit http://go.microsoft.com/fwlink/?LinkId=301862 BundleTable.EnableOptimizations = false; }
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-1.*")); bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include( "~/Scripts/jquery-ui*")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/jquerymobile").Include("~/Scripts/jquery.mobile*")); bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); bundles.Add(new StyleBundle("~/Content/mobilecss").Include("~/Content/jquery.mobile*")); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Content/themes/base/jquery.ui.selectable.css", "~/Content/themes/base/jquery.ui.accordion.css", "~/Content/themes/base/jquery.ui.autocomplete.css", "~/Content/themes/base/jquery.ui.button.css", "~/Content/themes/base/jquery.ui.dialog.css", "~/Content/themes/base/jquery.ui.slider.css", "~/Content/themes/base/jquery.ui.tabs.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.progressbar.css", "~/Content/themes/base/jquery.ui.theme.css")); }
private static void BundleBootstrapMain(BundleCollection bundleCollection) { //site base bundleCollection.Add( new StyleBundle("~/css/main") .Include("~/Content/bootstrap/main/dist/css/bootstrap.*") ); bundleCollection.Add( new ScriptBundle("~/js/main") .Include("~/Content/script/jquery-{version}.js", "~/Content/bootstrap/main/dist/js/bootstrap.*", "~/Content/script/bootbox.js") ); //bootstrap select bundleCollection.Add(new StyleBundle("~/bs_select_css"). Include("~/Content/bootstrap/Select/dist/css/bootstrap-select.*")); bundleCollection.Add(new ScriptBundle("~/bs_select_js"). Include("~/Content/bootstrap/Select/dist/js/bootstrap-select.*", "~/Content/bootstrap/Select/dist/js/i18n/defaults-zh_CN.js")); //bootstrap table bundleCollection.Add(new StyleBundle("~/bs_table_css").Include("~/Content/bootstrap/table/dist/bootstrap-table.css")); bundleCollection.Add(new ScriptBundle("~/bs_table_js").Include("~/Content/bootstrap/table/dist/bootstrap-table.js", "~/Content/bootstrap/table/dist/locale/bootstrap-table-zh-CN.js")); BundleTable.EnableOptimizations = true; }
public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/js-jquery").Include( "~/Scripts/jquery-1.*", "~/Scripts/underscore.js")); bundles.Add(new ScriptBundle("~/js").Include( "~/Scripts/jquery-1.*", "~/Scripts/bootstrap.js", "~/Scripts/jquery.validate.js", "~/scripts/jquery.validate.unobtrusive.js", "~/Scripts/jquery.validate.unobtrusive-custom-for-bootstrap.js" )); bundles.Add(new StyleBundle("~/content/css").Include( "~/Content/bootstrap.css", "~/Content/mystyles.css" )); bundles.Add(new StyleBundle("~/content/css-responsive").Include( "~/Content/bootstrap-responsive.css" )); bundles.Add(new StyleBundle("~/bundles/modernizr").Include( "~/Content/modernizr-*" )); }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); bundles.Add(new ScriptBundle("~/bundles/jqueryajax").Include( "~/Scripts/jquery.unobtrusive-ajax*")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/site.css", "~/Content/bootstrap-responsive.css")); bundles.Add(new ScriptBundle("~/bundles/common").Include( "~/Scripts/common.js" )); }
// 有关 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*")); // 使用要用于开发和学习的 Modernizr 的开发版本。然后,当你做好 // 生产准备时,请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。 bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Content/themes/base/jquery.ui.selectable.css", "~/Content/themes/base/jquery.ui.accordion.css", "~/Content/themes/base/jquery.ui.autocomplete.css", "~/Content/themes/base/jquery.ui.button.css", "~/Content/themes/base/jquery.ui.dialog.css", "~/Content/themes/base/jquery.ui.slider.css", "~/Content/themes/base/jquery.ui.tabs.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.progressbar.css", "~/Content/themes/base/jquery.ui.theme.css")); }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/validate") .Include("~/Scripts/jquery.validate.min.js", "~/Scripts/jquery.validate.unobtrusive.min.js") .Include("~/Scripts/highcharts.js")); /* <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script> */ bundles.Add(new ScriptBundle("~/bundles/jqueryajax").Include( "~/Scripts/jquery.unobtrusive-ajax*")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); 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")); }
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725 public static void RegisterBundles(BundleCollection bundles) { // Add or remove this line for the bundeling feature BackloadBundles.RegisterBundles(bundles); }
// 如需 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*")); // 使用開發版本的 Modernizr 進行開發並學習。然後,當您 // 準備好實際執行時,請使用 http://modernizr.com 上的建置工具,只選擇您需要的測試。 bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Content/themes/base/jquery.ui.selectable.css", "~/Content/themes/base/jquery.ui.accordion.css", "~/Content/themes/base/jquery.ui.autocomplete.css", "~/Content/themes/base/jquery.ui.button.css", "~/Content/themes/base/jquery.ui.dialog.css", "~/Content/themes/base/jquery.ui.slider.css", "~/Content/themes/base/jquery.ui.tabs.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.progressbar.css", "~/Content/themes/base/jquery.ui.theme.css")); }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.unobtrusive*", "~/Scripts/jquery.validate*")); bundles.Add(new ScriptBundle("~/bundles/knockout").Include( "~/Scripts/knockout-{version}.js", "~/Scripts/knockout.validation.js")); bundles.Add(new ScriptBundle("~/bundles/app").Include( "~/Scripts/sammy-{version}.js", "~/Scripts/app/common.js", "~/Scripts/app/app.datamodel.js", "~/Scripts/app/app.viewmodel.js", "~/Scripts/app/home.viewmodel.js", "~/Scripts/app/_run.js")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); 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")); }
// 如需「搭配」的詳細資訊,請瀏覽 http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // 使用開發版本的 Modernizr 進行開發並學習。然後,當您 // 準備好實際執行時,請使用 http://modernizr.com 上的建置工具,只選擇您需要的測試。 bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); 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")); // 將 EnableOptimizations 設為 false 以進行偵錯。如需詳細資訊, // 請造訪 http://go.microsoft.com/fwlink/?LinkId=301862 BundleTable.EnableOptimizations = true; }
private static void RegisterScripts(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery") .Include( "~/Scripts/KendoUI/jquery.min.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval") .Include("~/Scripts/jquery.validate*")); bundles.Add(new ScriptBundle("~/bundles/kendo") .Include( "~/Scripts/KendoUI/kendo.all.min.js", "~/Scripts/KendoUI/kendo.aspnetmvc.min.js")); bundles.Add(new ScriptBundle("~/bundles/tools") .Include( "~/Scripts/bootstrap.js", "~/Scripts/jquery.fancybox.js", "~/Scripts/toastr.js")); bundles.Add(new ScriptBundle("~/bundles/appJs") .Include( "~/Scripts/App/EntertainmentSystemApp.js", "~/Scripts/App/EntertainmentSystem-media.js")); }
// 有关绑定的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // 使用要用于开发和学习的 Modernizr 的开发版本。然后,当你做好 // 生产准备时,请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。 bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); 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")); // 将 EnableOptimizations 设为 false 以进行调试。有关详细信息, // 请访问 http://go.microsoft.com/fwlink/?LinkId=301862 BundleTable.EnableOptimizations = true; }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 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.min.js", "~/Scripts/jquery-ui-timepicker-addon.js")); bundles.Add(new ScriptBundle("~/bundles/canvas").Include( "~/Scripts/canvasjs.min.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); 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", "~/Content/jquery-ui.min.css", "~/Content/jquery-ui.structure.css", "~/Content/jquery-ui.theme.min.css", "~/Content/jquery-ui-timepicker-addon")); }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js", "~/Scripts/respond.js")); bundles.Add(new ScriptBundle("~/bundles/prism") .Include("~/Scripts/prism.js")); bundles.Add(new StyleBundle("~/Content/css") .Include( "~/Content/bootstrap.css", "~/Content/font-awesome.css", "~/Content/prism.css", "~/Content/site.css")); // Set EnableOptimizations to false for debugging. For more information, // visit http://go.microsoft.com/fwlink/?LinkId=301862 #if !DEBUG BundleTable.EnableOptimizations = true; #endif }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/paradise").Include( "~/Scripts/paradise/book.js", "~/Scripts/paradise/borrower.js", "~/Scripts/paradise/borrow.js", "~/Scripts/paradise/home.js")); bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/respond.js", "~/Scripts/bootstrap*", "~/Scripts/d3*", "~/Scripts/jquery.dataTables*", "~/Scripts/bootbox.min.js", "~/Scripts/dataTables.bootstrap.js")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/site.css", "~/Content/books.css", "~/Content/readers.css", "~/Content/dataTables.bootstrap.css")); }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jquery-ui").Include( "~/Scripts/jquery-ui-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); bundles.Add(new ScriptBundle("~/bundles/jqueryval-pl").Include( "~/Scripts/localization/messages_pl.js")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js", "~/Scripts/respond.js")); bundles.Add(new StyleBundle("~/Content/css/css2").Include( "~/Content/bootstrap.css", "~/Content/css/style.css")); #if DEBUG #else BundleTable.EnableOptimizations = true; #endif }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); 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")); bundles.Add(new ScriptBundle("~/bundles/angular").Include( "~/Scripts/angular.js", "~/Scripts/angular-route.js", "~/app/app.js", "~/app/services.js", "~/app/controllers.js")); }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js", "~/Scripts/jquery.unobtrusive-ajax.min.js")); // Dodaj AJAX unobtrusive. bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js", "~/Scripts/respond.js")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/LoadingAjax.css", // Dodaj AJAX css Loading. "~/Content/ErrorDisplay.css", // Dodaj Error css. "~/Content/sbAdmin2/font-awesome.css", "~/Content/sbAdmin2/sb-admin-2.css")); bundles.Add(new ScriptBundle("~/bundles/sbAdmin2").Include( "~/Scripts/sbAdmin2/metisMenu.js", "~/Scripts/sbAdmin2/excanvas.min.js", "~/Scripts/sbAdmin2/jquery.flot*", "~/Scripts/sbAdmin2/sb-admin-2.js", "~/Scripts/nScripts.js")); }
public static void RegisterBundles(BundleCollection bundles) { bundles.IgnoreList.Clear(); AddDefaultIgnorePatterns(bundles.IgnoreList); bundles.Add( new ScriptBundle("~/scripts/vendor") .Include("~/scripts/jquery-{version}.js") .Include("~/scripts/knockout-{version}.debug.js") .Include("~/scripts/sammy-{version}.js") .Include("~/scripts/toastr.js") .Include("~/scripts/Q.js") .Include("~/scripts/breeze.debug.js") .Include("~/scripts/bootstrap.js") .Include("~/scripts/moment.js") ); bundles.Add( new StyleBundle("~/Content/css") .Include("~/Content/ie10mobile.css") .Include("~/Content/bootstrap.css") .Include("~/Content/bootstrap-responsive.css") .Include("~/Content/durandal.css") .Include("~/Content/toastr.css") .Include("~/Content/app.css") ); }
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254726 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include( "~/Scripts/WebForms/WebForms.js", "~/Scripts/WebForms/WebUIValidation.js", "~/Scripts/WebForms/MenuStandards.js", "~/Scripts/WebForms/Focus.js", "~/Scripts/WebForms/GridView.js", "~/Scripts/WebForms/DetailsView.js", "~/Scripts/WebForms/TreeView.js", "~/Scripts/WebForms/WebParts.js")); bundles.Add(new ScriptBundle("~/bundles/knockout").Include( "~/Scripts/knockout-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include( "~/Scripts/WebForms/MsAjax/MicrosoftAjax.js", "~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js", "~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js", "~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js")); // Use the Development version of Modernizr to develop with and learn from. Then, when you’re // ready for production, use the build tool at http://modernizr.com to pick only the tests you need bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); }
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*")); bundles.Add(new ScriptBundle("~/bundles/noty").Include( "~/Scripts/noty/jquery.noty.js", "~/Scripts/noty/layouts/topLeft.js", "~/Scripts/noty/themes/relax.js")); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/core.css", "~/Content/themes/base/resizable.css", "~/Content/themes/base/selectable.css", "~/Content/themes/base/accordion.css", "~/Content/themes/base/autocomplete.css", "~/Content/themes/base/button.css", "~/Content/themes/base/dialog.css", "~/Content/themes/base/slider.css", "~/Content/themes/base/tabs.css", "~/Content/themes/base/datepicker.css", "~/Content/themes/base/progressbar.css", "~/Content/themes/base/theme.css")); }
// For more information on Bundling, visit 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/jqueryval").Include( "~/Scripts/jquery.unobtrusive*", "~/Scripts/jquery.validate*")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/site.css")); bundles.Add(new ScriptBundle("~/bundles/app").Include( "~/Scripts/App/kendo-custom-bindings.js", "~/Scripts/App/kendo-cart-menu-widget.js", "~/Scripts/App/config.js", "~/Scripts/App/cart.js", "~/Scripts/App/store.js", "~/Scripts/App/shared-layout.js")); bundles.Add(new ScriptBundle("~/bundles/libs").Include( "~/Scripts/date.js")); }
// For more information on Bundling, visit 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*")); bundles.Add(new StyleBundle("~/Content/css") .Include("~/Content/main_style.css", "~/Content/design.css")); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Content/themes/base/jquery.ui.selectable.css", "~/Content/themes/base/jquery.ui.accordion.css", "~/Content/themes/base/jquery.ui.autocomplete.css", "~/Content/themes/base/jquery.ui.button.css", "~/Content/themes/base/jquery.ui.dialog.css", "~/Content/themes/base/jquery.ui.slider.css", "~/Content/themes/base/jquery.ui.tabs.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.progressbar.css", "~/Content/themes/base/jquery.ui.theme.css")); }
public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/Vendor/jquery-{version}.js", "~/Scripts/Vendor/toastr.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/Vendor/jquery.validate*")); bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/Vendor/modernizr-*")); //Angular Bundle bundles.Add(new ScriptBundle("~/bundles/angularJs").Include( "~/Scripts/Vendor/Angular/angular.js", "~/Scripts/Vendor/Angular/angular-mocks.js", "~/Scripts/Vendor/Angular/angular-animate.js", "~/Scripts/Vendor/Angular/angular-route.js", "~/Scripts/Vendor/Angular/angular-sanitize.js", "~/Scripts/Vendor/Angular/angular-datepicker.min.js")); bundles.Add(new ScriptBundle("~/bundles/app").Include( "~/Scripts/App/app.js", "~/Scripts/App/controllers/shellController.js", "~/Scripts/App/services/songsService.js", "~/Scripts/App/services/playlistsService.js", "~/Scripts/App/services/authorsService.js", "~/Scripts/App/controllers/masterController.js", "~/Scripts/App/controllers/playlistDetailsController.js")); }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle(BasicScripts).Include( "~/Scripts/jquery-{version}.js" )); bundles.Add(new ScriptBundle(BackOfficeScripts).Include( "~/Scripts/jquery-{version}.js", "~/Scripts/bootstrap.js", "~/Scripts/date.js", "~/Scripts/UI.js", "~/Scripts/Requests.js", "~/Scripts/Backoffice.js", "~/Scripts/Layout.js", "~/Content/Scrollbar/jquery.mousewheel.js", "~/Content/Scrollbar/perfect-scrollbar.js", "~/Scripts/UiControls/GroupSelection.js", "~/Scripts/UiControls/MultiSelectWindow.js", "~/Scripts/WebSite.js" )); bundles.Add(new StyleBundle(BackOfficeCss).Include( "~/Content/bootstrap.css", //"~/Content/bootstrap-theme.css", "~/Content/material-fullpalette.css", "~/Content/Scrollbar/perfect-scrollbar.css", "~/Content/site.css", "~/Content/Other.css", "~/Content/SideMenu.css", "~/Content/monthpicker.css", "~/Content/Countries.css" )); bundles.Add(new ScriptBundle(MobileScripts).Include( "~/Scripts/jquery-{version}.js", "~/Scripts/bootstrap.js", "~/Scripts/UiMobile.js", "~/Scripts/Requests.js", "~/Scripts/Backoffice.js", "~/Scripts/Layout.js", "~/Scripts/UiControls/GroupSelection.js", "~/Scripts/UiControls/MultiSelectWindow.js", "~/Scripts/WebSite.js" )); bundles.Add(new StyleBundle(MobileCss).Include( "~/Content/bootstrap.css", "~/Content/material-fullpalette.css", "~/Content/mobile.css", "~/Content/Countries.css" )); }
// Дополнительные сведения о 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*")); // Используйте версию Modernizr для разработчиков, чтобы учиться работать. Когда вы будете готовы перейти к работе, // используйте средство построения на сайте http://modernizr.com, чтобы выбрать только нужные тесты. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Content/themes/base/jquery.ui.selectable.css", "~/Content/themes/base/jquery.ui.accordion.css", "~/Content/themes/base/jquery.ui.autocomplete.css", "~/Content/themes/base/jquery.ui.button.css", "~/Content/themes/base/jquery.ui.dialog.css", "~/Content/themes/base/jquery.ui.slider.css", "~/Content/themes/base/jquery.ui.tabs.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.progressbar.css", "~/Content/themes/base/jquery.ui.theme.css")); }
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/js").Include( "~/content/scripts/modernizr-*", "~/content/scripts/jquery-{version}.js", "~/content/scripts/jquery.validate*", "~/content/scripts/jquery.validate.unobtrusive.js", "~/content/scripts/bootstrap.js", "~/content/admin-lte/js/adminlte.js", "~/content/scripts/custom.js" )); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/admin-lte/css/AdminLTE.css", "~/Content/admin-lte/css/skins/_all-skins.css", "~/Content/font-awesome.css", "~/Content/site.css")); BundleTable.EnableOptimizations = false; }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); 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")); // Set EnableOptimizations to false for debugging. For more information, // visit http://go.microsoft.com/fwlink/?LinkId=301862 BundleTable.EnableOptimizations = true; }
// Дополнительные сведения о 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.validate.unobtrusive*")); // Используйте версию Modernizr для разработчиков, чтобы учиться работать. Когда вы будете готовы перейти к работе, // используйте средство построения на сайте http://modernizr.com, чтобы выбрать только нужные тесты. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css", "~/Content/css/bootstrap.css")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.min.js", "~/Scripts/respond.min.js")); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Content/themes/base/jquery.ui.selectable.css", "~/Content/themes/base/jquery.ui.accordion.css", "~/Content/themes/base/jquery.ui.autocomplete.css", "~/Content/themes/base/jquery.ui.button.css", "~/Content/themes/base/jquery.ui.dialog.css", "~/Content/themes/base/jquery.ui.slider.css", "~/Content/themes/base/jquery.ui.tabs.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.progressbar.css", "~/Content/themes/base/jquery.ui.theme.css")); }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery"). Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); 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")); }
public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/salary_converter").Include( "~/Scripts/salary_converter.js")); bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); 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")); }
// 有关捆绑的详细信息,请访问 https://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // 使用要用于开发和学习的 Modernizr 的开发版本。然后,当你做好 // 生产准备就绪,请使用 https://modernizr.com 上的生成工具仅选择所需的测试。 bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/site.css")); bundles.Add(new ScriptBundle("~/bundles/vue").Include("~/Scripts/vue.min.js")); bundles.Add(new ScriptBundle("~/bundles/axios").Include("~/Scripts/axios.min.js")); }
// Para mais informações sobre o agrupamento, visite http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js", "~/Scripts/jquery.signalR-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // Use a versão em desenvolvimento do Modernizr para desenvolver e aprender. Em seguida, quando estiver // pronto para produzir, utilize a ferramenta de compilação em http://modernizr.com para selecionar apenas os testes de que precisa. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); 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")); }
// Дополнительные сведения об объединении см. по адресу: http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); // Используйте версию Modernizr для разработчиков, чтобы учиться работать. Когда вы будете готовы перейти к работе, // используйте средство построения на сайте http://modernizr.com, чтобы выбрать только нужные тесты. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js", "~/Scripts/respond.js")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/css/bootstrap.css", "~/Content/site.css")); // Присвойте EnableOptimizations значение false для отладки. Дополнительные сведения // см. по адресу: http://go.microsoft.com/fwlink/?LinkId=301862 BundleTable.EnableOptimizations = true; }
// Para obter mais informações sobre o agrupamento, visite https://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js", "~/Scripts/sweetalert2.all.js", "~/Scripts/Site.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // Use a versão em desenvolvimento do Modernizr para desenvolver e aprender. Em seguida, quando estiver // pronto para a produção, utilize a ferramenta de build em https://modernizr.com para escolher somente os testes que precisa. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/site.css")); }
public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js", "~/Scripts/jquery.migrate.js", "~/Scripts/jquery.fitvids.js", "~/Scripts/jquery.isotope.js", "~/Scripts/jquery.appear.js", "~/Scripts/jquery.textillate.js", "~/Scripts/jquery.lettering.js", "~/Scripts/jquery.easypiechart.js", "~/Scripts/jquery.nicescroll.js", "~/Scripts/jquery.parallax.js", "~/Scripts/jquery.slicknav.js")); bundles.Add(new ScriptBundle("~/bundles/custom").Include( "~/Scripts/nivo-lightbox.js", "~/Scripts/count-to.js", "~/Scripts/script.js", "~/Scripts/owl.carousel.js")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizrr.js")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/font-awesome.css", "~/Content/slicknav.css", "~/Content/style.css", "~/Content/responsive.css", "~/Content/colors/orange.css", "~/Content/animate.css")); }
// 如需統合的詳細資訊,請瀏覽 https://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // 使用開發版本的 Modernizr 進行開發並學習。然後,當您 // 準備好可進行生產時,請使用 https://modernizr.com 的建置工具,只挑選您需要的測試。 bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/umd/popper.min.js", "~/Scripts/bootstrap.min.js" )); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/site.css")); }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); 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")); //admin template bundles bundles.Add(new ScriptBundle("~/bundles/template-core").Include( "~/js/jquery.min.js", "~/js/bootstrap.min.js", "~/js/jquery.nicescroll.min.js")); bundles.Add(new StyleBundle("~/Content/template-css").Include( "~/Content/bootstrap.min.css", "~/fonts/css/font-awesome.min.css", "~/Content/animate.min.css", "~/Content/custom.css")); bundles.Add(new StyleBundle("~/Content/datatable-css").Include( "~/js/datatables/jquery.dataTables.min.css", "~/js/datatables/fixedHeader.bootstrap.min.css", "~/js/datatables/responsive.bootstrap.min.css", "~/js/datatables/scroller.bootstrap.min.css")); }
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); bundles.Add(new ScriptBundle("~/bundles/jquerydatepicker").Include( "~/Scripts/DateTimePicker/jquery.datetimepicker.js")); bundles.Add(new StyleBundle("~/Content/jquerydatepicker").Include( "~/Scripts/DateTimePicker/jquery.datetimepicker.css")); bundles.Add(new ScriptBundle("~/bundles/jquerymasked").Include( "~/Scripts/jquery.maskedinput.js")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at https://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js", "~/Scripts/moment.js", "~/Scripts/bootstrap-datetimepicker.js", "~/Scripts/respond.js")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/site.css")); bundles.Add(new ScriptBundle("~/bundles/app").Include( "~/Scripts/knockout-{version}.js", "~/Scripts/knockout-file-bind.js", "~/Scripts/app.js")); BundleTable.EnableOptimizations = false; }
// For more information on Bundling, visit 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*")); bundles.Add(new ScriptBundle("~/bundles/highcharts").Include( "~/Scripts/Highcharts-3.0.1/js/highcharts.js")); bundles.Add(new ScriptBundle("~/bundles/lazyload").Include( "~/Scripts/jquery.lazyload.min.js")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Content/themes/base/jquery.ui.selectable.css", "~/Content/themes/base/jquery.ui.accordion.css", "~/Content/themes/base/jquery.ui.autocomplete.css", "~/Content/themes/base/jquery.ui.button.css", "~/Content/themes/base/jquery.ui.dialog.css", "~/Content/themes/base/jquery.ui.slider.css", "~/Content/themes/base/jquery.ui.tabs.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.progressbar.css", "~/Content/themes/base/jquery.ui.theme.css")); }
private static void AddAppBundles(BundleCollection bundles) { var scriptBundle = new ScriptBundle("~/appscripts"); var adminAppDirFullPath = HttpContext.Current.Server.MapPath(string.Format("~/{0}", AdminAppDir)); if (Directory.Exists(adminAppDirFullPath)) { scriptBundle.Include( // Order matters, so get the core app setup first string.Format("~/{0}/app.module.js", AdminAppDir), string.Format("~/{0}/app.core.module.js", AdminAppDir)) // then get any other top level js files .IncludeDirectory(string.Format("~/{0}", AdminAppDir), "*.js", false) // then get all nested module js files .IncludeDirectory(string.Format("~/{0}", AdminAppDir), "*.module.js", true) // finally, get all the other js files .IncludeDirectory(string.Format("~/{0}", AdminAppDir), "*.js", true); } bundles.Add(scriptBundle); //bundles.Add(new StyleBundle("~/adminstyles").Include( // "~/content/css/admin.css")); }
// 有关 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", "~/Scripts/jquery.form.js", "~/Scripts/tongji.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*")); // 使用 Modernizr 的开发版本进行开发和了解信息。然后,当你做好 // 生产准备时,请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。 bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/reset.css", "~/Content/style.css" )); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Content/themes/base/jquery.ui.selectable.css", "~/Content/themes/base/jquery.ui.accordion.css", "~/Content/themes/base/jquery.ui.autocomplete.css", "~/Content/themes/base/jquery.ui.button.css", "~/Content/themes/base/jquery.ui.dialog.css", "~/Content/themes/base/jquery.ui.slider.css", "~/Content/themes/base/jquery.ui.tabs.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.progressbar.css", "~/Content/themes/base/jquery.ui.theme.css")); }
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // Utilice la versión de desarrollo de Modernizr para desarrollar y obtener información. De este modo, estará // ready for production, use the build tool at https://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); 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" )); }
// Para obtener más información sobre las uniones, consulte http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); // Utilice la versión de desarrollo de Modernizr para desarrollar y obtener información sobre los formularios. De este modo, estará // preparado para la producción y podrá utilizar la herramienta de compilación disponible en http://modernizr.com para seleccionar solo las pruebas que necesite. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); 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")); bundles.Add(new ScriptBundle("~/bundles/app").Include( "~/Scripts/knockout-3.3.0.js", "~/Scripts/app.js")); }
// 如需統合的詳細資訊,請瀏覽 https://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-3.3.1.min.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // 使用開發版本的 Modernizr 進行開發並學習。然後,當您 // 準備好可進行生產時,請使用 https://modernizr.com 的建置工具,只挑選您需要的測試。 bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js")); bundles.Add(new ScriptBundle("~/bundles/kendo").Include( "~/Scripts/Kendo/kendo.all.min.js", "~/Scripts/Kendo/extend/kendo.culture.en-US.min.js", "~/Scripts/Kendo/extend/kendo.culture.zh-TW.min.js", "~/Scripts/Kendo/extend/kendo.extension.js", "~/Scripts/Kendo/extend/kendo.grid.js", "~/Scripts/Kendo/extend/kendo.messages.en-US.min.js", "~/Scripts/Kendo/extend/kendo.messages.zh-TW.min.js", "~/Scripts/Kendo/extend/kendo.twcalendar.js", "~/Scripts/Kendo/extend/kendo.twcalendar.ori.min.js", "~/Scripts/Kendo/extend/kendo.twdatepicker.js", "~/Scripts/Kendo/extend/kendo.twdatepicker.ori.min.js", "~/Scripts/Kendo/extend/kendo.twdatetimepicker.js", "~/Scripts/Kendo/extend/kendo.twdatetimepicker.ori.min.js" )); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/site.css")); bundles.Add(new StyleBundle("~/Content/css/kendo").Include( "~/Content/kendo/kendo.common.min.css", "~/Content/kendo/kendo.default.min.css")); }
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { //BundleTable.EnableOptimizations = true; bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/default/jquery-{version}.js" //, "~/Scripts/default/jquery-{version}.min.js" )); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at https://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include("~/Scripts/default/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/default/bootstrap.js" , "~/Scripts/default/respond.js" )); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css" , "~/Content/site.css" )); bundles.Add(new ScriptBundle("~/bundles/angular").Include( "~/Scripts/angjslib/angular.js" )); //bundles.Add(new ScriptBundle("~/bundles/modules").Include( // "~/Scripts/app/app.module.js" // ,"~/Scripts/app/market/market.module.js" // )); bundles.Add(new ScriptBundle("~/bundles/modules").IncludeDirectory("~/Scripts/app", "*.module.js", true)); bundles.Add(new ScriptBundle("~/bundles/configurations").IncludeDirectory("~/Scripts/app", "*.config.js", true)); bundles.Add(new ScriptBundle("~/bundles/services").IncludeDirectory("~/Scripts/app", "*.service.js", true)); bundles.Add(new ScriptBundle("~/bundles/routes").IncludeDirectory("~/Scripts/app", "*.route.js", true)); bundles.Add(new ScriptBundle("~/bundles/controllers").IncludeDirectory("~/Scripts/app", "*.controller.js", true)); bundles.Add(new ScriptBundle("~/bundles/directives").IncludeDirectory("~/Scripts/app", "*.directive.js", true)); }
public static void RegisterBundles(BundleCollection bundles) { bundles.IgnoreList.Clear(); AddDefaultIgnorePatterns(bundles.IgnoreList); bundles.Add( new ScriptBundle("~/Scripts/vendor") .Include("~/Scripts/jquery-{version}.js") .Include("~/Scripts/bootstrap.js") .Include("~/Scripts/knockout-{version}.js") ); bundles.Add( new StyleBundle("~/Content/css") .Include("~/Content/ie10mobile.css") .Include("~/Content/bootstrap.min.css") .Include("~/Content/bootstrap-responsive.min.css") .Include("~/Content/font-awesome.min.css") .Include("~/Content/durandal.css") .Include("~/Content/starterkit.css") ); }
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/QLFahasa.js", "~/Scripts/jquery.unobtrusive-ajax.min.js", "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at https://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js", "~/Scripts/bootstrap-4.4.1/js/bootstrap.js")); bundles.Add(new StyleBundle("~/Home/css").Include( "~/Content/bootstrap-4.4.1/css/bootstrap.css", "~/Content/bootstrap.css", "~/Content/main.css", "~/Content/font-awesome-4.7.0/css/font-awesome.min.css", "~/Content/custom/HomePage.css")); bundles.Add(new StyleBundle("~/Login/css").Include( "~/Content/bootstrap-4.4.1/css/bootstrap.css", "~/Content/bootstrap.css", "~/Content/main.css", "~/Content/font-awesome-4.7.0/css/font-awesome.min.css", "~/Content/custom/LoginPage.css")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/Custom-kendo.css", "~/Content/main.css", "~/Content/site.css")); }
public void RenderWithOptimizationsWillIgnoreCdnPathFromBundleIfNotSpecifiedTest() { AssetManager manager = SetupAssetManager(); BundleCollection col = new BundleCollection(); manager.Bundles = col; BundleResolver resolver = new BundleResolver(col, manager.Context); manager.Resolver = resolver; manager.OptimizationEnabled = true; col.Add(new ScriptBundle("~/bundle1", "http://cdnPath1")); col.Add(new ScriptBundle("~/bundle2")); col.Add(new ScriptBundle("~/bundle3", "http://cdnPath3")); col.UseCdn = false; string expectedTags = @"<link href=""bundle1?v="" rel=""stylesheet""/> <link href=""bundle2?v="" rel=""stylesheet""/> <link href=""bundle3?v="" rel=""stylesheet""/> "; Assert.AreEqual(expectedTags, Styles.Render("~/bundle1", "~/bundle2", "~/bundle3").ToHtmlString()); }
// Paketleme hakkında daha fazla bilgi için lütfen https://go.microsoft.com/fwlink/?LinkId=301862 adresini ziyaret edin public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); bundles.Add(new ScriptBundle("~/Layout/js").Include( "~/app-assets/JS/sweetalert.min.js" )); // Geliştirme yapmak ve öğrenmek için Modernizr'ın geliştirme sürümünü kullanın. Daha sonra, // üretim için hazır. https://modernizr.com adresinde derleme aracını kullanarak yalnızca ihtiyacınız olan testleri seçin. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/site.css")); }
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/scripts") .Include( "~/Scripts/bootstrap.js", "~/Scripts/jquery.validate.js", "~/Scripts/jquery.validate.unobtrusive.js", "~/Scripts/jquery.lightbox.js", "~/Scripts/jquery.autocomplete.pack.js", "~/Scripts/SyntaxHighlighter/shCore.js", "~/Scripts/SyntaxHighlighter/shAutoloader.js", "~/Scripts/custom.js", "~/Scripts/jquery.lightbox.js")); bundles.Add(new StyleBundle("~/css/combined") .Include( "~/Content/bootstrap/bootstrap.css", "~/Content/custom.css", "~/Content/lightbox.css", "~/Content/jquery.autocomplete.css", "~/Content/shCoreDefault.css")); }
// 有关 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*")); bundles.Add(new ScriptBundle("~/bundles/musikall").Include( "~/Scripts/musikall.js")); // 使用要用于开发和学习的 Modernizr 的开发版本。然后,当你做好 // 生产准备时,请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。 bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css", "~/Content/fontface.css", "~/Content/effects.css", "~/Content/PagedList.css")); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Content/themes/base/jquery.ui.selectable.css", "~/Content/themes/base/jquery.ui.accordion.css", "~/Content/themes/base/jquery.ui.autocomplete.css", "~/Content/themes/base/jquery.ui.button.css", "~/Content/themes/base/jquery.ui.dialog.css", "~/Content/themes/base/jquery.ui.slider.css", "~/Content/themes/base/jquery.ui.tabs.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.progressbar.css", "~/Content/themes/base/jquery.ui.theme.css")); }
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/js/lib/jquery.min.js")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/js/lib/bootstrap.min.js")); bundles.Add(new ScriptBundle("~/bundles/datatables").Include( "~/js/lib/jquery.dataTables.min.js", "~/js/lib/dataTables.bootstrap.min.js", "~/js/lib/dataTables.colReorders.min.js")); bundles.Add(new StyleBundle("~/Content/css").Include( "~/css/bootstrap.min.css", "~/css/bootstrap-theme.min.css", "~/css/jquery.dataTables.min.css", "~/css/jquery.dataTables_themeroller.css", "~/css/dataTables.bootstrap.min.css", "~/css/colReorder.bootstrap.min.css", "~/css/site.css")); }
// 有关捆绑的详细信息,请访问 https://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { //将依赖文件打包,只需要写一个~/bundles/jquery,就可以将~/Scripts/jquery-{version}.js全部一起依赖进去 bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.validate*")); // 使用要用于开发和学习的 Modernizr 的开发版本。然后,当你做好 // 生产准备就绪,请使用 https://modernizr.com 上的生成工具仅选择所需的测试。 bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( "~/Scripts/bootstrap.js")); //再比如这个:依赖~/Content/css,相当于依赖~/Content/bootstrap.css+~/Content/site.css bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/site.css")); }
private static void AddMpaCssLibs(BundleCollection bundles, bool isRTL) { bundles.Add( new StyleBundle("~/Bundles/Mpa/libs/css" + (isRTL ? "RTL" : "")) .Include(StylePaths.JQuery_UI, new CssRewriteUrlWithVirtualDirectoryTransform()) .Include(StylePaths.JQuery_jTable_Theme, new CssRewriteUrlWithVirtualDirectoryTransform()) .Include(StylePaths.FontAwesome, new CssRewriteUrlWithVirtualDirectoryTransform()) .Include(StylePaths.Simple_Line_Icons, new CssRewriteUrlWithVirtualDirectoryTransform()) .Include(StylePaths.FamFamFamFlags, new CssRewriteUrlWithVirtualDirectoryTransform()) .Include(isRTL ? StylePaths.BootstrapRTL : StylePaths.Bootstrap, new CssRewriteUrlWithVirtualDirectoryTransform()) .Include(StylePaths.JQuery_Uniform, new CssRewriteUrlWithVirtualDirectoryTransform()) .Include(StylePaths.JsTree, new CssRewriteUrlWithVirtualDirectoryTransform()) .Include(StylePaths.Morris) .Include(StylePaths.SweetAlert) .Include(StylePaths.Toastr) .Include(StylePaths.Bootstrap_DateRangePicker) .Include(StylePaths.Bootstrap_Switch) .Include(StylePaths.Bootstrap_Select) .Include(StylePaths.JQuery_Jcrop) .ForceOrdered() ); }
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725 public static void RegisterBundles(BundleCollection bundles) { // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr") .Include("~/Scripts/modernizr-*") ); //bundles.UseCdn = true; //bundles.Add(new ScriptBundle("~/bundles/googlemaps", "http://maps.googleapis.com/maps/api/js?sensor=false")); //.Include(string.Format("http://maps.googleapis.com/maps/api/js?key={0}&sensor=false", "")) bundles.Add(new ScriptBundle("~/bundles/jquery") .Include( "~/Scripts/jquery-{version}.js", "~/Scripts/lodash.js", "~/Scripts/jquery.unobtrusive*", "~/Scripts/jquery.validate*", //"~/Scripts/gridmvc.js", "~/Scripts/bootstrap*", "~/Scripts/maps/markerclusterer.js", "~/Scripts/app/app.core.js", "~/Scripts/app/app.admin.js", "~/Scripts/app/app.maps.js", "~/Scripts/app/util.js" ) ); bundles.Add(new StyleBundle("~/Content/css") .Include( "~/Content/bootstrap/bootstrap.css", "~/Content/Gridmvc.css", "~/Content/app/app.css" ) ); }