Step 4: Creating gulp task

Gulp Task code Explanation:

gulp.src – It defines the input files path for processingpipe – It is used to chain multiple tasks together using pipe method.gulp.dest – It defines the output location for processed files.Concat – This method combines multiples files into single file. We should declare the output
file name within the brackets.

Overall Source Code for Minify and concatenate the JS files using gulp js.