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 f
Both extensions mentioned in other answers seem abandoned, but the good thing, Visual Studio has built-on support for npm
and Grunt/Gulp tasks - that can "watch" a file, and minify/compile JS, CSS, SASS and everything else you have in your project.
package.json
into your project root folder, with Grunt or Gulp added there. Visual Studio will "detect" it and install all the npm
packages in the background.Gruntfile.js
(or Gulpfile if you prefer Gulp) and Visual Studio "task runner" will also detect it automatically.I wrote a detailed blog post with screenshots and everything, since it can be overwhelming for VS/.NET people to get familiar with npm/grunt/gulp/npm-scripts
at first, but it's easy, trust me! I've been there myself.