Created
May 10, 2014 11:41
-
-
Save anonymous/84f3776ccdd590e1e635 to your computer and use it in GitHub Desktop.
Asp.NET MVC Bundle ignore configuration
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
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