0
tteoh created
1 Answer(s)
-
0
Hi,
You can use IgnoreList Class:
- <a class="postlink" href="https://docs.microsoft.com/en-us/previous-versions/aspnet/web-frameworks/jj646573(v=vs.110">https://docs.microsoft.com/en-us/previo ... 3(v=vs.110</a>)
- <a class="postlink" href="https://weblogs.asp.net/imranbaloch/hidden-options-of-asp-net-bundling-and-minification">https://weblogs.asp.net/imranbaloch/hid ... nification</a>
- <a class="postlink" href="https://stack247.wordpress.com/2014/04/18/asp-net-mvc-4-bundles-ignore-list/">https://stack247.wordpress.com/2014/04/ ... nore-list/</a>
See the sample code;
//APPLICATION bundles.IgnoreList.Clear(); bundles.IgnoreList.Ignore("*.intellisense.js"); bundles.IgnoreList.Ignore("*-vsdoc.js"); bundles.IgnoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled); bundles.IgnoreList.Ignore("*.min.css", OptimizationMode.WhenDisabled); bundles.Add( new StyleBundle("~/Bundles/App/css") .IncludeDirectory("~/App", "*.css", true) .ForceOrdered() ); bundles.Add( new ScriptBundle("~/Bundles/App/js") .IncludeDirectory("~/App", "*.js", true) .ForceOrdered() );