How to minify CSS and JavaScript files in Visual Studio 2015

Bergerova picture Bergerova · Aug 11, 2015 · Viewed 39.9k times · Source

I am building a web application for mobile using visual studio, and I wanted to know how do I minify all my CSS files into one file, and also all my JavaScript to one minified file.

Answer

Dwain Browne picture Dwain Browne · Aug 16, 2015

You can use the Visual Studio 2015 Bundler & Minifier,extention https://visualstudiogallery.msdn.microsoft.com/9ec27da7-e24b-4d56-8064-fd7e88ac1c40 this used to be apart of Web Essentials in previous versions of Visual Studio, but was separated, into it's own extension.