Concatenate files using gulp-concat
npm install --save-dev gulp-concat
gulpfile.js:
// including plugins var gulp = require('gulp'); var concat = require("gulp-concat"); // task gulp.task('concat', function () { gulp.src('./javascript/*.js') // path to your files .pipe(concat('concat.js')) // concat and name it "concat.js" .pipe(gulp.dest('path/to/destination')); });
Run:
gulp concat