Пример #1
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            var css = new CustomStyleBundle("~/Css/lib");

            css.Include("~/Content/Css/Bootstrap/bootstrap.less");
            css.Include("~/Content/Css/Fontawesome/css/font-awesome.css");
            css.IncludeDirectory("~/Content/Css/Plugins", "*.css");
            css.Include("~/Content/ed3d/css/styles.css");
            css.IncludeDirectory("~/Content/Css", "*.less");
            css.Orderer = new NullOrderer();
            bundles.Add(css);

            var js = new CustomScriptBundle("~/Js/lib");

            js.Include("~/Content/Js/lib/jquery.min.js");
            js.Include("~/Content/Js/lib/angular.min.js");
            js.Include("~/Content/Js/lib/moment.min.js");
            js.Include("~/Content/Js/lib/jquery.wysibb.min.js");
            js.Include("~/Content/Js/lib/ng-tags-input.js");
            js.Include("~/Content/Js/lib/ng-google-chart.js");
            js.Include("~/Content/Js/lib/checklist-model.js");
            js.Include("~/Content/Js/lib/jquery.easy-autocomplete.min.js");
            js.Include("~/Content/Js/app.js");
            js.IncludeDirectory("~/Content/Js/Controllers", "*.js");
            js.IncludeDirectory("~/Content/Js/Directives", "*.js");
            js.Orderer = new NullOrderer();
            bundles.Add(js);

#if !DEBUG
            BundleTable.EnableOptimizations = true;
#endif
        }
Пример #2
0
        private static Bundle CreateSassBundle(string name, string serverPath)
        {
            var sassBundle = new CustomStyleBundle(name);

            sassBundle.IncludeDirectory(serverPath, "*.scss");

            return(sassBundle);
        }