Last active
December 22, 2015 22:59
-
-
Save cdeutsch/6543513 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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