Exemplo n.º 1
0
        // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.AddScriptBundle("jquery").AddScript("jquery-{version}.js");
            bundles.AddScriptBundle("jqueryval").AddScript("jquery.validate*");

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at https://modernizr.com to pick only the tests you need.
            bundles.AddScriptBundle("modernizr").AddScript("modernizr-*");

            bundles.AddScriptBundle("bootstrap").AddScript("bootstrap.bundle.min.js");

            bundles.AddStyleBundle("css").AddStyle("site.css");
        }
Exemplo n.º 2
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.AddScriptBundle("~/bundles/scripts/common")
                .Include(
                    "~/Scripts/jquery-1*",
                    "~/Scripts/jquery.pjax.js",
                    "~/Scripts/jquery.unobtrusive*",
                    "~/Scripts/jquery.validate*");

            bundles.AddScriptBundle("~/bundles/scripts/jqueryui")
                .Include("~/Scripts/jquery-ui*");
            
            bundles.AddScriptBundle("~/bundles/scripts/modernizr")
                .Include("~/Scripts/modernizr-*");

            bundles.AddScriptBundle("~/bundles/scripts/application")
                .IncludeDirectory("~/Scripts/Application", "*.js");

            bundles.AddStyleBundle("~/bundles/styles/common")
                .Include("~/Content/site.css")
                .Include("~/Content/less/bootstrap.less");

            bundles.AddStyleBundle("~/bundles/styles/jqueryui")
                .Include(
                    "~/Content/themes/base/jquery.ui.core.css",
                    "~/Content/themes/base/jquery.ui.resizable.css",
                    "~/Content/themes/base/jquery.ui.selectable.css",
                    "~/Content/themes/base/jquery.ui.accordion.css",
                    "~/Content/themes/base/jquery.ui.autocomplete.css",
                    "~/Content/themes/base/jquery.ui.button.css",
                    "~/Content/themes/base/jquery.ui.dialog.css",
                    "~/Content/themes/base/jquery.ui.slider.css",
                    "~/Content/themes/base/jquery.ui.tabs.css",
                    "~/Content/themes/base/jquery.ui.datepicker.css",
                    "~/Content/themes/base/jquery.ui.progressbar.css",
                    "~/Content/themes/base/jquery.ui.theme.css");
        }