Skip to content

Instantly share code, notes, and snippets.

@Snegovikufa
Forked from anonymous/bundleconfig.cs
Created May 10, 2014 11:42
Show Gist options
  • Save Snegovikufa/cd0cf6408a480dd29f30 to your computer and use it in GitHub Desktop.
Save Snegovikufa/cd0cf6408a480dd29f30 to your computer and use it in GitHub Desktop.
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