Posted by : sinhalamp3 Tuesday, December 1, 2015


BundleConfig.cs


bundles.Add(new ScriptBundle("~/Scripts/bootstrap").Include(
               "~/Scripts/bootstrap.js")
           );

            bundles.Add(new ScriptBundle("~/Scripts/knockoutjs").Include(
               "~/Scripts/knockout-{version}.js",
               "~/Scripts/knockout.mapping.min.js",
                "~/Scripts/ko.observableDictionary.js",
                "~/Scripts/knockout-jqAutocomplete.js"
               )
           );

            bundles.Add(new ScriptBundle("~/Scripts/jqueryui").Include(
               "~/Content/jquery-ui-1.11.4/jquery-ui.js")
           );


            bundles.Add(new ScriptBundle("~/Scripts/jqueryval").Include(
              "~/Scripts/jquery.validate*")
          );

            bundles.Add(new StyleBundle("~/Styles/bootstrap").Include(
                "~/Content/bootstrap.css",
                "~/Content/bootstrap-theme.css")
            );

            bundles.Add(new StyleBundle("~/Styles/font-awesome").Include(
               "~/Content/font-awesome.css"
               )
           );

            bundles.Add(new StyleBundle("~/Styles/jqueryui").Include(
            "~/Content/jquery-ui-1.11.4/jquery-ui.css",
             "~/Content/jquery-ui-1.11.4/jquery-ui.theme.css"
            )
        );
/////////////////////////////////////////////// FULL Bundle Config ...-----------------------

bundles.IgnoreList.Clear();

            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrapjs").Include(
                        "~/Scripts/bootstrap.min.js"));

            bundles.Add(new StyleBundle("~/Content/bootstrapcss").Include(
                        "~/Content/bootstrap.min.css",
                        "~/Content/bootstrap-responsive.min.css"));



//------------------------------------------------

            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/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/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 http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));

            bundles.Add(new StyleBundle("~/Content/themes/base/css").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"));
//-------------------------------------------------------------------------

            bundles.Add(new ScriptBundle("~/Scripts/bootstrap").Include(
               "~/Scripts/bootstrap.js")
           );

            bundles.Add(new ScriptBundle("~/Scripts/knockoutjs").Include(
               "~/Scripts/knockout-{version}.js",
               "~/Scripts/knockout.mapping.min.js",
                "~/Scripts/ko.observableDictionary.js",
                "~/Scripts/knockout-jqAutocomplete.js"
               )
           );

            bundles.Add(new ScriptBundle("~/Scripts/jqueryui").Include(
               "~/Content/jquery-ui-1.11.4/jquery-ui.js")
           );


            bundles.Add(new ScriptBundle("~/Scripts/jqueryval").Include(
              "~/Scripts/jquery.validate*")
          );

            bundles.Add(new StyleBundle("~/Styles/bootstrap").Include(
                "~/Content/bootstrap.css",
                "~/Content/bootstrap-theme.css")
            );

            bundles.Add(new StyleBundle("~/Styles/font-awesome").Include(
               "~/Content/font-awesome.css"
               )
           );

            bundles.Add(new StyleBundle("~/Styles/jqueryui").Include(
            "~/Content/jquery-ui-1.11.4/jquery-ui.css",
             "~/Content/jquery-ui-1.11.4/jquery-ui.theme.css"
            )
        );

------------------------------------------- Layout Page Import JQuery and Others -----------


@*        @System.Web.Optimization.Scripts.Render("~/Scripts/jquery-1.9.1")*@
    @System.Web.Optimization.Scripts.Render("~/Scripts/jqueryui")
@*       @System.Web.Optimization.Scripts.Render("~/Scripts/jquery")*@
@*    @System.Web.Optimization.Scripts.Render("~/Scripts/bootstrap")*@

      @System.Web.Optimization.Styles.Render("~/Styles/jqueryui")
    @System.Web.Optimization.Styles.Render("~/Styles/bootstrap")
    @System.Web.Optimization.Styles.Render("~/Styles/font-awesome")

  
   


    @System.Web.Optimization.Scripts.Render("~/Scripts/knockoutjs")




Leave a Reply

Subscribe to Posts | Subscribe to Comments

Popular Post

Blogger templates

lakshika345@gmail.com. Powered by Blogger.

- Copyright © mp3s for you -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -