gulpfile.js
function browserTask(minify) {
  return function() {
    var task = browserify(
        {
          entries: [index],
          standalone: 'Asana'
        })
        .bundle()
        .pipe(vinylSourceStream('asana' + (minify ? '-min' : '') + '.js'));
    if (minify) {
      task = task
          .pipe(vinylBuffer())
          .pipe(uglify());
    }
    return task.pipe(gulp.dest('dist'));
  };
}
function browserTask(minify) {
  return function() {
    var task = browserify(
        {
          entries: [index],
          standalone: 'Asana'
        })
        .bundle()
        .pipe(vinylSourceStream('asana' + (minify ? '-min' : '') + '.js'));
    if (minify) {
      task = task
          .pipe(vinylBuffer())
          .pipe(uglify());
    }
    return task.pipe(gulp.dest('dist'));
  };
}
function browserTask ( minify ) { return function ( ) { var task = browserify ( { entries : [ index ] , standalone : 'Asana' } ) . bundle ( ) . pipe ( vinylSourceStream ( 'asana' + ( minify ? '-min' : '' ) + '.js' ) ) ; if ( minify ) { task = task . pipe ( vinylBuffer ( ) ) . pipe ( uglify ( ) ) ; } return task . pipe ( gulp . dest ( 'dist' ) ) ; } ; }
Bundles the code, full version to `asana.js` and minified to `asana-min.js`
Bundles the code full version to asana . js and minified to asana - min . js