BundleConfig.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web.Optimization;
  5. namespace Winsoft.GOV.XF.WX
  6. {
  7. public class BundleConfig
  8. {
  9. // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
  10. public static void RegisterBundles(BundleCollection bundles)
  11. {
  12. bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
  13. "~/Scripts/jquery-{version}.js"));
  14. bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
  15. "~/Scripts/jquery.unobtrusive*",
  16. "~/Scripts/jquery.validate*"));
  17. bundles.Add(new ScriptBundle("~/bundles/knockout").Include(
  18. "~/Scripts/knockout-{version}.js",
  19. "~/Scripts/knockout.validation.js"));
  20. bundles.Add(new ScriptBundle("~/bundles/app").Include(
  21. "~/Scripts/sammy-{version}.js",
  22. "~/Scripts/app/common.js",
  23. "~/Scripts/app/app.datamodel.js",
  24. "~/Scripts/app/app.viewmodel.js",
  25. "~/Scripts/app/home.viewmodel.js",
  26. "~/Scripts/app/_run.js"));
  27. // 使用要用于开发和学习的 Modernizr 的开发版本。然后,当你做好
  28. // ready for production, use the build tool at https://modernizr.com to pick only the tests you need.
  29. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
  30. "~/Scripts/modernizr-*"));
  31. bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
  32. "~/Scripts/bootstrap.js",
  33. "~/Scripts/respond.js"));
  34. bundles.Add(new StyleBundle("~/Content/css").Include(
  35. "~/Content/bootstrap.css",
  36. "~/Content/Site.css"));
  37. }
  38. }
  39. }