Files
LeafWeb/Web/App_Start/BundleConfig.cs
T
2016-05-11 12:12:14 -04:00

46 lines
1.5 KiB
C#

using System.Web.Optimization;
using Backload.Bundles;
namespace LeafWeb.Web.App_Start
{
public class BundleConfig
{
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
public static void RegisterBundles(BundleCollection bundles)
{
// Add or remove this line for the bundeling feature
BackloadBundles.RegisterBundles(bundles);
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/scripts/jquery-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/forms").Include(
"~/scripts/jquery.validate.js",
"~/scripts/jquery.validate.unobtrusive.js",
"~/scripts/jquery.validate.unobtrusive.bootstrap.js",
"~/scripts/filebutton.js"));
//// Use the development version of Modernizr to develop with and learn from. Then, when you're
//// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
//bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
// "~/scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/scripts/bootstrap.js"));
bundles.Add(new ScriptBundle("~/bundles/angularjs")
.Include("~/scripts/angular.js")
.Include("~/scripts/angular-*"));
bundles.Add(new ScriptBundle("~/bundles/autocomplete")
.Include("~/scripts/jquery.autocomplete.js"));
bundles.Add(new StyleBundle("~/bundles/css").Include(
"~/Content/bootstrap.css",
"~/Content/font-awesome.css",
"~/Content/site.css"
));
}
}
}