Forget all other gulp-task. This is all you need to optimize your webapp for production.
CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.npmignore
.travis.yml
.yo-rc.json
LICENSE
coffeelint.json
gulpfile.coffee
gulpfile.js
index.coffee
package.json
readme.md

readme.md

gulp-reduce NPM version

Build Status Coverage Status Dependency Status devDependency Status

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'
        }));
});

Options reduce(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).

License

MIT License © Martin Broder