/// <summary> /// Removes all the bundles from the collection and removes support for common conventions. /// </summary> /// <remarks> /// In addition to calling <see cref="Clear"/> on the collection, suport for common conventions is removed by also clearing /// <see cref="FileExtensionReplacementList"/>, <see cref="IgnoreList"/>, <see cref="DirectoryFilter"/>, and <see cref="FileSetOrderList"/> /// </remarks> public void ResetAll() { Clear(); FileExtensionReplacementList.Clear(); IgnoreList.Clear(); DirectoryFilter.Clear(); FileSetOrderList.Clear(); }
/// <summary> /// Add default file extension replacements for common conventions. /// </summary> /// <param name="list">The <see cref="FileExtensionReplacementList"/> to populate with default values.</param> /// <remarks> /// The default conventions supported are the following: /// <list type="bullet"> /// <item><description>select *.min.js when <see cref="BundleTable.EnableOptimizations"/> is true</description></item> /// <item><description>select *.debug.js when <see cref="BundleTable.EnableOptimizations"/> is false</description></item> /// </list> /// </remarks> public static void AddDefaultFileExtensionReplacements(FileExtensionReplacementList list) { if (list == null) { throw new ArgumentNullException("list"); } list.Add("min", OptimizationMode.WhenEnabled); list.Add("debug", OptimizationMode.WhenDisabled); }