Cleaning your build folder with grunt-contrib-clean

Aaron Frost
InstructorAaron Frost

Share this video with your friends

Send Tweet

Grunt will clean up your build with the grunt-contrib-clean to make sure that no artifacts from previous builds are hanging around.

~ 6 years ago

I noticed that you used concat before using uglify. Uglify has the ability to concatenate files, so concatenating before uglifying is not necessary.

See this from the grunt-contrib-uglify documentation:

Notice that more than one source file is being directed to a destination file in their first example; all of these get concatenated before being uglified.