lib/ignoreStream.js
function ignoreStream(strategy) {
    if (!(strategy instanceof IgnoreStrategy)) {
        strategy = DefaultIgnoreStrategy.INSTANCE;
    }

    return through.obj(function(chunk, enc, cb) {
        strategy.execute(this, chunk).then(function(isIgnored) {
            if (!isIgnored) {
                cb(null, chunk);
            } else {
                cb(null);
            }
        });
    });
}
function ignoreStream(strategy) {
    if (!(strategy instanceof IgnoreStrategy)) {
        strategy = DefaultIgnoreStrategy.INSTANCE;
    }

    return through.obj(function(chunk, enc, cb) {
        strategy.execute(this, chunk).then(function(isIgnored) {
            if (!isIgnored) {
                cb(null, chunk);
            } else {
                cb(null);
            }
        });
    });
}
function ignoreStream ( strategy ) { if ( ! ( strategy instanceof IgnoreStrategy ) ) { strategy = DefaultIgnoreStrategy . INSTANCE ; } return through . obj ( function ( chunk , enc , cb ) { strategy . execute ( this , chunk ) . then ( function ( isIgnored ) { if ( ! isIgnored ) { cb ( null , chunk ) ; } else { cb ( null ) ; } } ) ; } ) ; }
Prevents writing of `webpack.config.js`. Can be piped.
@function
@alias ignoreStream
@param {IgnoreStrategy=} strategy
@returns {Stream}
Prevents writing of webpack . config . js . Can be piped .