Skip to content

Instantly share code, notes, and snippets.

Created May 10, 2014 11:41
Show Gist options
  • Save anonymous/84f3776ccdd590e1e635 to your computer and use it in GitHub Desktop.
Save anonymous/84f3776ccdd590e1e635 to your computer and use it in GitHub Desktop.
Asp.NET MVC Bundle ignore configuration
public static void RegisterBundles(BundleCollection bundles)
{
bundles.IgnoreList.Clear();
AddDefaultIgnorePatterns(bundles.IgnoreList);
}
public static void AddDefaultIgnorePatterns(IgnoreList ignoreList)
{
if (ignoreList == null)
{
throw new ArgumentNullException("ignoreList");
}
ignoreList.Ignore("*.intellisense.js");
ignoreList.Ignore("*-vsdoc.js");
//ignoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
//ignoreList.Ignore("*.min.js", OptimizationMode.WhenDisabled);
//ignoreList.Ignore("*.min.css", OptimizationMode.WhenDisabled);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment