ASP.NET MVC both combines and minifies JS and CSS. It has two built in handlers for this: JsMinify
and CssMinify
, respectively. There's nuget packages that allow you to substitute these for other minification algorithms, such as JsMin, YUI, etc.
If a file with .min
exists, it is assumed that you have handled the minification yourself, and that file will be combined (but not minified again) with the rest of your resources.
Both bundling and minification occurs only in release configuration. So you would have to publish and deploy your app with the release config, before you'll see anything happen. In debug config, MVC serves up each resource, unmodified, individually.