I created some theme HtmlHelper extensions for that grab the .css and .js files in a theme directory and dynamically register them as bundles. However, if the theme only contains .min.js files, the Scripts.Render output is empty in debug mode.
Is there a way to include *.min.js files in the output for Scripts.Render when in debug mode?
Figured it out.
BundleTable.Bundles.IgnoreList.Clear(); // apparently, IgnoreList included .min.js in debug
BundleTable.Bundles.IgnoreList.Ignore(".intellisense.js", OptimizationMode.Always);
BundleTable.Bundles.IgnoreList.Ignore("-vsdoc.js", OptimizationMode.Always);
BundleTable.Bundles.IgnoreList.Ignore(".debug.js", OptimizationMode.Always);
Faced same problem earlier......all i did was to upgrade the asp.net web optimization to the latest alpha version.
来源:https://stackoverflow.com/questions/12487742/asp-net-mvc4-bundling-minification-min-js-files-excluded-from-scripts-render