gulp-reduce

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

gulp-reduce

WIP!

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

concatinates,

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 () {
    gulp.src([
        'src/*.html',
        'src/*.htaccess',
        'src/*.txt',
        'src/*.ico'
    ])
        .pipe(reduce({
            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