/
aprogrammer
/
eShopOnBlazor
Обзор
Документация
Войти
/
aprogrammer
/
eShopOnBlazor
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/eShopLegacyWebForms/App_Start/BundleConfig.cs
48 строк
2 KB
Daniel Roth
Add web forms app and initial Blazor project
20 авг 2019, 22:58
20 авг 2019, 22:58
fb54195
Код
Авторство
О чём код?
using System.Web.Optimization; using System.Web.UI; namespace eShopLegacyWebForms { public class BundleConfig { // For more information on Bundling, visit https://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 https://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/bootstrap.css", "~/Content/custom.css", "~/Content/base.css", "~/Content/site.css")); ScriptManager.ScriptResourceMapping.AddDefinition( "respond", new ScriptResourceDefinition { Path = "~/Scripts/respond.min.js", DebugPath = "~/Scripts/respond.js", }); } } }