jt
2021-06-10 5d0d028456874576560552f5a5c4e8b801786f11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
 
namespace HH.WMS.WebUI
{
    public class BundleConfig
    {
        // 有关 Bundling 的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            var EasyuiVersion = "1.3.2";
            ResetIgnorePatterns(bundles.IgnoreList);
 
            ////脚本
            //bundles.Add(new ScriptBundle("~/Content/js/library").Include(
            //    "~/Content/js/core/json2.min.js",
            //    "~/Content/js/core/utils.js",
            //    "~/Content/js/core/common.js",
            //    "~/Content/js/core/knockout-2.2.1.js",
            //    "~/Content/js/core/knockout.mapping-2.4.1.js",
            //    "~/Content/js/core/knockout.bindings.js",
            //    "~/Content/js/jquery-plugin/showloading/jquery.showLoading.min.js",
            //    "~/Content/js/core/jquery.easyui.fix.js"));
 
            //bundles.Add(new ScriptBundle("~/Content/js/index").Include(
            //    "~/Content/js/jquery/jquery-{version}.min.js",
            //    "~/Content/js/core/common.js"
            //    ));
        }
 
        public static void ResetIgnorePatterns(IgnoreList ignoreList)
        {
            ignoreList.Clear();
            ignoreList.Ignore("*.intellisense.js");
            ignoreList.Ignore("*-vsdoc.js");
            ignoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
            //ignoreList.Ignore("*.min.js", OptimizationMode.WhenDisabled);
            ignoreList.Ignore("*.min.css", OptimizationMode.WhenDisabled);
        }
 
    }
}