You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.9 KiB
45 lines
1.9 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web.Optimization;
|
|
|
|
namespace SpaAspNetCore
|
|
{
|
|
public class BundleConfig
|
|
{
|
|
// Дополнительные сведения об объединении см. на странице https://go.microsoft.com/fwlink/?LinkId=301862
|
|
public static void RegisterBundles(BundleCollection bundles)
|
|
{
|
|
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
|
|
"~/Scripts/jquery-{version}.js"));
|
|
|
|
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
|
|
"~/Scripts/jquery.unobtrusive*",
|
|
"~/Scripts/jquery.validate*"));
|
|
|
|
bundles.Add(new ScriptBundle("~/bundles/knockout").Include(
|
|
"~/Scripts/knockout-{version}.js",
|
|
"~/Scripts/knockout.validation.js"));
|
|
|
|
bundles.Add(new ScriptBundle("~/bundles/app").Include(
|
|
"~/Scripts/sammy-{version}.js",
|
|
"~/Scripts/app/common.js",
|
|
"~/Scripts/app/app.datamodel.js",
|
|
"~/Scripts/app/app.viewmodel.js",
|
|
"~/Scripts/app/home.viewmodel.js",
|
|
"~/Scripts/app/_run.js"));
|
|
|
|
// Используйте версию Modernizr для разработчиков, чтобы учиться работать. Когда вы будете готовы перейти к работе,
|
|
// готово к выпуску, используйте средство сборки по адресу https://modernizr.com, чтобы выбрать только необходимые тесты.
|
|
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
|
|
"~/Scripts/modernizr-*"));
|
|
|
|
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
|
|
"~/Scripts/bootstrap.js"));
|
|
|
|
bundles.Add(new StyleBundle("~/Content/css").Include(
|
|
"~/Content/bootstrap.css",
|
|
"~/Content/Site.css"));
|
|
}
|
|
}
|
|
}
|
|
|