Basf_EProject/EProject/WebApi/App_Start/BundleConfig.cs

34 lines
1.2 KiB
C#
Raw Normal View History

2024-05-08 11:01:54 +08:00
using System.Web;
using System.Web.Optimization;
namespace WebApi
{
2026-02-10 15:41:06 +08:00
/// <summary>
///
/// </summary>
2024-05-08 11:01:54 +08:00
public class BundleConfig
{
2026-02-10 15:41:06 +08:00
/// <summary>
/// 有关捆绑的详细信息,请访问 https://go.microsoft.com/fwlink/?LinkId=301862
/// </summary>
/// <param name="bundles"></param>
2024-05-08 11:01:54 +08:00
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
// 使用要用于开发和学习的 Modernizr 的开发版本。然后,当你做好
// 生产准备就绪,请使用 https://modernizr.com 上的生成工具仅选择所需的测试。
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
2026-02-10 15:41:06 +08:00
bundles.Add(new Bundle("~/bundles/bootstrap").Include(
2024-05-08 11:01:54 +08:00
"~/Scripts/bootstrap.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css"));
}
}
}