Skip to content

Instantly share code, notes, and snippets.

@cdeutsch
Last active December 22, 2015 22:59
Show Gist options
  • Save cdeutsch/6543513 to your computer and use it in GitHub Desktop.
Save cdeutsch/6543513 to your computer and use it in GitHub Desktop.
using BundleTransformer.Core.Orderers;
using BundleTransformer.Core.Transformers;
using System.Web;
using System.Web.Optimization;
namespace Xamarin.Web.SalesTools
{
public class BundleConfig
{
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
public static void RegisterBundles(BundleCollection bundles)
{
var cssTransformer = new CssTransformer();
var jsTransformer = new JsTransformer();
var nullOrderer = new NullOrderer();
var defaultScriptsBundle = new Bundle("~/bundles/default").Include(
//"~/scripts/jquery-{version}.js",
"~/Scripts/jquery.monthCalendar.js",
"~/Scripts/spin*",
"~/scripts/garber-irish-page-load-util.js",
"~/scripts/xamarin.common.js",
"~/scripts/xamarin.js",
"~/scripts/partials/*.js",
"~/scripts/pages/*.js"
);
defaultScriptsBundle.Transforms.Add(jsTransformer);
defaultScriptsBundle.Orderer = nullOrderer;
bundles.Add(defaultScriptsBundle);
var defaultStylesBundle = new Bundle("~/content/default").Include(
"~/content/screen.less"
);
defaultStylesBundle.Transforms.Add(cssTransformer);
defaultStylesBundle.Orderer = nullOrderer;
bundles.Add(defaultStylesBundle);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment