BundleConfig.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Optimization;
  6. namespace GreenTree.Nachtragsmanagement.Web.App_Start
  7. {
  8. public class BundleConfig
  9. {
  10. public static void RegisterBundles(BundleCollection bundles)
  11. {
  12. var jqueryBundle = new ScriptBundle("~/bundles/jquery");
  13. jqueryBundle.Include("~/Scripts/jquery-1.11.3.min.js");
  14. jqueryBundle.Include("~/Scripts/jquery-ui-1.11.4.min.js");
  15. jqueryBundle.Include("~/Scripts/jquery.unobtrusive-ajax.min.js");
  16. jqueryBundle.Include("~/Scripts/jquery.validate-vsdoc.js");
  17. jqueryBundle.Include("~/Scripts/jquery.validate.min.js");
  18. jqueryBundle.Include("~/Scripts/jquery.validate.unobtrusive.min.js");
  19. var globalizeBundle = new ScriptBundle("~/bundles/globalize");
  20. globalizeBundle.Include("~/Scripts/globalize.js");
  21. globalizeBundle.Include("~/Scripts/globalize.currency.js");
  22. globalizeBundle.Include("~/Scripts/globalize.date.js");
  23. globalizeBundle.Include("~/Scripts/globalize.message.js");
  24. globalizeBundle.Include("~/Scripts/globalize.number.js");
  25. var knockoutBundle = new ScriptBundle("~/bundles/knockout");
  26. knockoutBundle.Include("~/Scripts/knockout-3.3.0.js");
  27. var modernizrBundle = new ScriptBundle("~/bundles/modernizr");
  28. knockoutBundle.Include("~/Scripts/modernizr-2.6.2.js");
  29. bundles.Add(jqueryBundle);
  30. bundles.Add(globalizeBundle);
  31. bundles.Add(knockoutBundle);
  32. bundles.Add(modernizrBundle);
  33. }
  34. }
  35. }