You can see that it used a minified version of Angular, but our code, we wrote, still isn't minified. So, let's go ahead and get this minified, so that everything's minified.
Let's go ahead and install it. You start by typing mpm install grunt-contrib-uglify and use the save dev flag so that it saves it to your package.json.
Once that's installed, let's go ahead and set it up in our Grunt file. Let's start by loading the task into our Grunt file.
To do this, we'll just add Uglify here. Now, we can add an Uglified section to our net config.
We'll take the concatinated file, we'll minify it, and replace itself in the build directory with our minified version of itself.
At this point, all we have to do is in the terminal, we run Grunt Uglify. Now that that's done, we can see that the files were minified. We can actually see how much they've shrunk during the minification.
We only had a few files, it didn't shrink a ton. With more code, it gets significantly smaller.
When you look at the code here, you can see that there's clearly a difference in our app.js. The minification happened and shrunk everything to as small as possible form.