cbfile.js
function () {
    var chunks = [];
    return through2.obj(function (file, enc, cb) {
        chunks.push(file);
        var string = file._contents.toString();
        var regex  = /\/\*\*debug:start\*\*\/[\s\S]*\/\*\*debug:end\*\*\//g;
        var stripped = string.replace(regex, "");
        file.contents = new Buffer(stripped);
        this.push(file);
        cb();
    });
}
function () {
    var chunks = [];
    return through2.obj(function (file, enc, cb) {
        chunks.push(file);
        var string = file._contents.toString();
        var regex  = /\/\*\*debug:start\*\*\/[\s\S]*\/\*\*debug:end\*\*\//g;
        var stripped = string.replace(regex, "");
        file.contents = new Buffer(stripped);
        this.push(file);
        cb();
    });
}
function ( ) { var chunks = [ ] ; return through2 . obj ( function ( file , enc , cb ) { chunks . push ( file ) ; var string = file . _contents . toString ( ) ; var regex = / \/\*\*debug:start\*\*\/[\s\S]*\/\*\*debug:end\*\*\/ / g ; var stripped = string . replace ( regex , "" ) ; file . contents = new Buffer ( stripped ) ; this . push ( file ) ; cb ( ) ; } ) ; }
Strip debug statements
@returns {*}
Strip debug statements