52 lines
2.3 KiB
C#
52 lines
2.3 KiB
C#
using System.Web.Optimization;
|
|
|
|
namespace MP_SITE
|
|
{
|
|
public class BundleConfig
|
|
{
|
|
// Per altre informazioni sulla creazione di bundle, vedere https://go.microsoft.com/fwlink/?LinkID=303951
|
|
public static void RegisterBundles(BundleCollection bundles)
|
|
{
|
|
// codice JS!
|
|
bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include(
|
|
"~/Scripts/WebForms/WebForms.js",
|
|
"~/Scripts/WebForms/WebUIValidation.js",
|
|
"~/Scripts/WebForms/MenuStandards.js",
|
|
"~/Scripts/WebForms/Focus.js",
|
|
"~/Scripts/WebForms/GridView.js",
|
|
"~/Scripts/WebForms/DetailsView.js",
|
|
"~/Scripts/WebForms/TreeView.js",
|
|
"~/Scripts/WebForms/WebParts.js"));
|
|
|
|
// L'ordine è molto importante per il funzionamento di questi file poiché hanno dipendenze esplicite
|
|
bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include(
|
|
"~/Scripts/WebForms/MsAjax/MicrosoftAjax.js",
|
|
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js",
|
|
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js",
|
|
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js"));
|
|
|
|
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
|
|
"~/Scripts/modernizr-*"));
|
|
|
|
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
|
|
"~/Scripts/jquery-{version}.js"));
|
|
|
|
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
|
|
"~/Scripts/jquery-ui-{version}.js"));
|
|
|
|
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
|
|
"~/Scripts/bootstrap.js"));
|
|
|
|
bundles.Add(new ScriptBundle("~/bundles/vis").Include(
|
|
"~/vis/vis.js"));
|
|
|
|
//// CSS!
|
|
//bundles.Add(new StyleBundle("~/Content/css").Include(
|
|
// "~/Content/bootstrap.css",
|
|
// "~/Content/Style.css"));
|
|
|
|
// abilito boundle "forzato"!
|
|
BundleTable.EnableOptimizations = true;
|
|
}
|
|
}
|
|
} |