As far as I know, you don't have to add any additional code to implement minification...bundling will eliminate unnecessary whitespaces,comments and rename the variables thus improving the performance. I'm sure you might have played around with fiddler to see
the differences... Thanks
DhavalShah89
Member
111 Points
75 Posts
Is minification done along with bundling automatically?
Aug 19, 2012 01:44 AM|LINK
Hi,
I have done bundling of js files in mvc4 and want to know how to do minification so that I can increase performance of my site.
Or it is done automatically with bundling.
Thanks
minify css mvc3
rrmnet
Member
22 Points
11 Posts
Re: Is minification done along with bundling automatically?
Aug 19, 2012 05:58 AM|LINK
minify css mvc3
DhavalShah89
Member
111 Points
75 Posts
Re: Is minification done along with bundling automatically?
Aug 20, 2012 01:34 AM|LINK
I dont think its true because when i see my javascripts in firebug, it is not minified.
ignatandrei
All-Star
134947 Points
21626 Posts
Moderator
MVP
Re: Is minification done along with bundling automatically?
Aug 20, 2012 03:40 AM|LINK
As I know, you must be in release mode, not in debug mode.