Build-time Minification of Web Assets in ASP.NET

For a recent project, I wanted to do build-time minification of the CSS and JavaScript files that are part of an ASP.NET web application, so that I could deploy pre-minified files rather than doing the work to minify files at AppStart or during page load.