Minification and Bundling in MVC 4 RC
Asp .NET MVC 4 Release Candidate is out. One of the features that is included is called the minification and bundling feature. This was already there in the beta but in the release candidate version it has changed.
Why should we use it
How does it work
Reference the files in your page.
When you run the application and use Fiddler to view the calls to your server, you still see all the files called separately.
This is because the Bundling and Minification feature by default only work when your not in debug mode. This handy because then you could debug with all the whitespaces in your files and have the performance in the production environment.
See the difference in your production environment:
Force Bundling and Minification
You can use the BundleTable.EnableOptmizations override but the best way for a little test is to remove the debug=”true” attribute in your web.config.