38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
namespace LaaProduction
|
|
{
|
|
using System.Web.Optimization;
|
|
|
|
/// <summary>
|
|
/// A class that configures all static assets (.css, .js, fonts, etc.) for the web application.
|
|
/// </summary>
|
|
public class BundleConfig
|
|
{
|
|
/// <summary>
|
|
/// Registers all configured static assets for the web application.
|
|
/// </summary>
|
|
/// <param name="bundles"><see cref="BundleCollection"/> - passed by calling this method.</param>
|
|
public static void RegisterBundles(BundleCollection bundles)
|
|
{
|
|
bundles
|
|
.Add(new StyleBundle("~/bootstrap_css")
|
|
.Include("~/App_Content/css/bootstrap.min.css"));
|
|
|
|
bundles
|
|
.Add(new StyleBundle("~/styles_css")
|
|
.Include("~/App_Content/css/styles.css"));
|
|
|
|
bundles
|
|
.Add(new Bundle("~/bootstrap_js")
|
|
.Include("~/App_Content/js/bootstrap.bundle.min.js"));
|
|
|
|
bundles
|
|
.Add(new Bundle("~/barcodes_js")
|
|
.Include("~/App_Content/js/jsbarcode.all.min.js"));
|
|
|
|
bundles
|
|
.Add(new Bundle("~/scripts_js")
|
|
.Include("~/App_Content/js/scripts.js"));
|
|
}
|
|
}
|
|
}
|