BundleConfig.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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.min.js");
  17. var globalizeBundle = new ScriptBundle("~/bundles/globalize");
  18. globalizeBundle.Include("~/Scripts/globalize.currency.js");
  19. globalizeBundle.Include("~/Scripts/globalize.date.js");
  20. globalizeBundle.Include("~/Scripts/globalize.js");
  21. globalizeBundle.Include("~/Scripts/globalize.message.js");
  22. globalizeBundle.Include("~/Scripts/globalize.number.js");
  23. var knockoutBundle = new ScriptBundle("~/bundles/knockout");
  24. knockoutBundle.Include("~/Scripts/knockout-3.3.0.js");
  25. var modernizrBundle = new ScriptBundle("~/bundles/modernizr");
  26. knockoutBundle.Include("~/Scripts/modernizr-2.6.2.js");
  27. bundles.Add(jqueryBundle);
  28. bundles.Add(globalizeBundle);
  29. bundles.Add(knockoutBundle);
  30. bundles.Add(modernizrBundle);
  31. }
  32. }
  33. }