Skip to content

Instantly share code, notes, and snippets.

@tegaralaga
Created June 14, 2013 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tegaralaga/5780934 to your computer and use it in GitHub Desktop.
Save tegaralaga/5780934 to your computer and use it in GitHub Desktop.
using System.Web;
using System.Web.Optimization;
using WellThen.Helpers;
namespace WellThen
{
public class BundleConfig
{
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
private static string TwitterBootstrapCSS = "//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css";
private static string TwitterBootstrapJS = "//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js";
private static string FontAwesomeCSS = "//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.min.css";
private static string jQuery = "//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js";
private static string jQueryMin = "//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js";
private static string jQueryUIJS = "//code.jquery.com/ui/1.10.3/jquery-ui.min.js";
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new StyleBundle("~/package/css").Include(
"~/static/css/bootstrap-combined.no-icons.min.css",
"~/static/css/font-awesome.min.css",
"~/static/css/ui.css",
"~/static/css/fb.css",
"~/static/css/buttons.css",
"~/static/css/thumbs.css"
));
bundles.Add(new ScriptBundle("~/package/js").Include(
"~/static/js/jquery-1.7.2.js",
"~/static/js/bootstrap.js",
"~/static/js/ui.js",
"~/static/js/fb.js",
"~/static/js/buttons.css",
"~/static/js/thumbs.css",
"~/static/js/mousewheel.js",
"~/static/js/livequery.js",
"~/static/js/noty/noty.js",
"~/static/js/noty/layouts/top.js",
"~/static/js/noty/layouts/bottom.js",
"~/static/js/noty/layouts/inline.js",
"~/static/js/noty/layouts/center.js",
"~/static/js/noty/themes/default.js",
"~/static/js/block.js"
));
bundles.Add(new StyleBundle("~/package/css/bootstrap/min/no-icon", TwitterBootstrapCSS).Include("~/static/css/bootstrap-combined.no-icons.min.css"));
bundles.Add(new StyleBundle("~/package/css/font-awesome/min", FontAwesomeCSS).Include("~/static/css/font-awesome.min.css"));
bundles.Add(new StyleBundle("~/package/css/master").Include("~/static/css/master.css"));
bundles.Add(new StyleBundle("~/package/css/plugins").Include(
"~/static/css/ui.css",
"~/static/css/fb.css",
"~/static/css/buttons.css",
"~/static/css/thumbs.css"
));
bundles.Add(new ScriptBundle("~/package/js/bootstrap/min", TwitterBootstrapJS).Include("~/static/js/bootstrap.min.js"));
bundles.Add(new ScriptBundle("~/package/js/jquery", jQuery).Include("~/static/js/jquery-1.7.2.js"));
bundles.Add(new ScriptBundle("~/package/js/jquery/min", jQueryMin).Include("~/static/js/jquery-1.7.2.min.js"));
bundles.Add(new ScriptBundle("~/package/js/jquery/ui", jQueryUIJS).Include("~/static/js/ui.js"));
bundles.Add(new ScriptBundle("~/package/js/master").Include("~/static/js/master.js"));
bundles.Add(new ScriptBundle("~/package/js/plugins").Include(
"~/static/js/fb.js",
"~/static/js/buttons.css",
"~/static/js/thumbs.css",
"~/static/js/mousewheel.js",
"~/static/js/livequery.js",
"~/static/js/noty/noty.js",
"~/static/js/noty/layouts/top.js",
"~/static/js/noty/layouts/bottom.js",
"~/static/js/noty/layouts/inline.js",
"~/static/js/noty/layouts/center.js",
"~/static/js/noty/themes/default.js",
"~/static/js/block.js"
));
BundleTable.EnableOptimizations = true;
if (UtilsHelper.isConnected())
{
bundles.UseCdn = true;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment