How can you test bundling in debug mode?

Total Post:83

Points:415
Mvc  Mvc4 
C#
 385  View(s)
Ratings:
Rate this:
  1. Post:83

    Points:415
    How can you test bundling in debug mode?

    You need to set EnableOptimizations to true in the bundleconfig.cs file in the debuge mode to test bundling. You can write following line of code to set EnableOptimizations to true:

    BundleTable.EnableOptimizations = true;
    
    If you can't, you will not see the bundling effect in the page request.

Answer