Forget all other gulp-tasks. This is all you need to optimize your webapp for production.



Heavily inspired by grunt-reduce. Thanks a lot to @Munter, as most of the code here is just basically based on his code.


First, install gulp-reduce as a development dependency:

npm install --save-dev gulp-reduce

Then, add it to your gulpfile.js:

var gulp = require('gulp');
var reduce = require('gulp-reduce');
gulp.task('build', function () {
            root: 'src',
            outRoot: 'dist'

Type: String Default: app

Root path of your app.

Type: String Default: app

Destination path (where all files will be put).

MIT License © Martin Broder