In Visual Studio 2013, how do I minify Javascript and CSS in the post-build step
问题 In Visual Studio 2013, how do I minify Javascript and CSS in the post-build step? I'd like to have every single css and js file compress into a .min.js, or .min.css in the same folder. I don't want to check in the minified files, but rather just have them generated post-build. 回答1: With Microsoft Ajax Minifier you could create powershell script to create minified versions of all files in given folder and add it to Post-build events. Example for js files(it will be similar for css): Get