What is Grunt? Grunt is an open-source tool that you can use to build all of the frontend resources for your project.
There are three types of Package Managers in Visual Studio 2015.
- NPM(Node Package Manager)
First we will define Grunt package in NPM. For that we need to add NPM file like below.
package.json file like below. It will add, NPM packages into the project.
Uglify command. This will create app.js minified file in wwwroot folder.
Uglify command to automatically run in After Build.