Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi folks,

I am implementing bundling and minification in my application.
I am able to combine resource.But I dont see any minification is applied to bundled folder.It is not clearing the comments in js/css files and not optimizing the content of the files.


Please share your thoughts on this.
Posted

1 solution

If you are debugging your application from VS it will not happen in debug mode.

You can enable this by adding BundleTable.EnableOptimizations = true; in your RegisterBundles method (BundleConfig class in the App_Start folder)

http://www.asp.net/mvc/overview/performance/bundling-and-minification[^]
 
Share this answer
 
v2
Comments
[no name] 19-Dec-14 8:35am    
i can able to see the bundled files.but i dont see any minification applied on bundled files..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900