As I have migrated from Asp.Net MVC 3 to MVC 4, everything working fine with Asp.Net MVC 4 except minification.
Issue
My bundling works BUT minification is NOT working.
Bundling code
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(
new Bundle("~/Bundles/Entity").Include(
"~/Scripts/Module/*.js"));
}
and it renders the script tag as given below: (which is true and fine!)
e.g.
<script src="/Bundles/Entity?v=rXIO788liM9pg6AVW5wS7Fxv9LboBMZ5O4ajQRLgk7Y1"></script>
If you see above code, it generates the bundling script reference, which means bundling is working fine, BUT when I click to see the content, the JS content is NOT minified, which means that minification is NOT working.
Would anybody please do let me know that where is the problem OR what should be the resolution of it?
Thanks in advance!