Posted by Anuraj on Thursday, October 31, 2013
You can enable bundling and minification using Microsoft Web Optimization framework. You can install it using nuget.
Once you install the nuget package, you can write following code in global.asax file, in the Application_Start event.
Instead of selecting all the files in the scripts / styles folder, you can also specify / order of the files like this.
Bundling and minification is enabled or disabled by setting the value of the debug attribute in the compilation Element in the Web.config file.
You can override the Web.config setting with the EnableOptimizations property on the BundleTable class.