Using Grunt JavaScript Minification
We will continue from our last blog post on Grunt: using less and css minification to JavaScript minification using a plugin called Uglify.
JSHint
To begin we will use a linting tool called jshint, to help us in taming our JavaScript with some static code analysis to flags suspicious usage.
We can use the command line npm install for it or we can use the visual studio tool to install
|
1 |
npm install grunt-contrib-jshint --save-dev |
Now that we have jshint lets add our grunt task for jshint in our Gruntfile.js


