39 lines
939 B
C#
39 lines
939 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web.Optimization;
|
|
|
|
namespace OSS {
|
|
|
|
public class BundleConfig {
|
|
|
|
public static void RegisterBundles(BundleCollection bundles) {
|
|
|
|
var scriptBundle = new ScriptBundle("~/Scripts/bundle");
|
|
var styleBundle = new StyleBundle("~/Content/bundle");
|
|
|
|
// jQuery
|
|
scriptBundle
|
|
.Include("~/Scripts/jquery-3.4.1.js");
|
|
|
|
// Bootstrap
|
|
scriptBundle
|
|
.Include("~/Scripts/bootstrap.js");
|
|
|
|
// Bootstrap
|
|
styleBundle
|
|
.Include("~/Content/bootstrap.css");
|
|
|
|
// Custom site styles
|
|
styleBundle
|
|
.Include("~/Content/Site.css");
|
|
|
|
bundles.Add(scriptBundle);
|
|
bundles.Add(styleBundle);
|
|
|
|
#if !DEBUG
|
|
BundleTable.EnableOptimizations = true;
|
|
#endif
|
|
}
|
|
}
|
|
} |