gulp-reduce
Deprecated!
Heavily inspired by grunt-reduce. Thanks a lot to @Munter, as most of the code here is just basically based on his code.
concatinates,
Usage
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'
}));
});
reduce(options)
Options options.root
Type: String
Default: app
Root path of your app.
options.outRoot
Type: String
Default: app
Destination path (where all files will be put).