Craftsman at Work

I'm Artur Karbone, coding software architect and independent IT consultant and this is my blog about craftsmanship, architecture, distributed systems, management and much more.

KendoUI and ASP.NET Bundling

Just spent a lot of my time trying to intersect Kendo UI and ASP.NET Bundler. The crack of them problem is that kendo scripts are minified by default and Bundler's default behavior is not to render minified scripts.

The solution is to clear the IgnoreList of bundle collection.

bundles.IgnoreList.Clear()

Let's abstract it away, though:

  private static void AllowMinifiedFilesInDebugMode(BundleCollection bundles)
        {
            bundles.IgnoreList.Clear();
        }

Hope it helps.

comments powered by Disqus