gulp-concat npm package of node.js


Overview

This plugin is used to concatenate 2 or more files into a single output file.

Code


													
var gulp = require('gulp');
var concat = require('gulp-concat');
gulp.task('scripts' , function() {
	return gulp.src('source/*.js')			//add your custom source here
	.pipe(concat('min.js'))					// name of the output file
	.pipe(gulp.dest('destination4'));		// name of the destination folder comes here
});
				
													
												

Run

  • Now run the snippet using the following command :
    													
    $ gulp	scripts