gulp-neuter

Unifies javascript source files in the order you require

gulp-neuter

Unifies javascript source files in the order you require

First, install gulp-neuter as a development dependency:

npm install --save-dev gulp-neuter

Then, add it to your gulpfile.js:

var neuter = require('gulp-neuter');
 
gulp.task('templates', function(){
  gulp.src(['js/main.js'])
    .pipe(handlebars())
    .pipe(gulp.dest('build/templates/'));
});

For the full list of options, have a look at the node-neuter documentation. Gulp-neuter is a minimalistic wrapper on top of node-neuter and supports all options as listed.