Bundling and Minifying Assets in an ASP.NET Web Pages (Razor) Site

by Microsoft

Bundling and minification are ways to make your site faster. Bundling lets you combine multiple JavaScript (.js) files or multiple cascading style sheet (.css) files so that they can be downloaded as a unit, rather than one at a time. Minification squeezes out whitespace and performs other types of compression to make the downloaded files as small a possible.

Note

The RC release of ASP.NET Web Pages 2 does not support bundling and minification because the package that contains the required elements is not yet available in Microsoft WebMatrix. We apologize for this inconvenience. The package is expected to be available in the final release of ASP.NET Web Pages 2 and WebMatrix 2.