gulpfile.js
function bundle() {
  return browserify( config.inputDir + config.inputFile ).bundle()
    .pipe(
      source( config.outputFile )
    )
    .pipe(
      rename( config.outputFile )
    )
    .pipe(
      gulp.dest( config.outputDir ) // Create the .devel.js
    )
    .pipe(
      streamify( jsmin() )
    )
    .pipe(
      rename( config.outputFileMin )
    )
    .pipe(
      gulp.dest( config.outputDir ) // Create the .min.js
    )
    .pipe(
      streamify( gzip() )
    )
    .pipe(
      rename( config.outputFileMinGz )
    )
    .pipe(
      gulp.dest( config.outputDir ) // Create the .min.gz
    );
}
function bundle() {
  return browserify( config.inputDir + config.inputFile ).bundle()
    .pipe(
      source( config.outputFile )
    )
    .pipe(
      rename( config.outputFile )
    )
    .pipe(
      gulp.dest( config.outputDir ) // Create the .devel.js
    )
    .pipe(
      streamify( jsmin() )
    )
    .pipe(
      rename( config.outputFileMin )
    )
    .pipe(
      gulp.dest( config.outputDir ) // Create the .min.js
    )
    .pipe(
      streamify( gzip() )
    )
    .pipe(
      rename( config.outputFileMinGz )
    )
    .pipe(
      gulp.dest( config.outputDir ) // Create the .min.gz
    );
}
function bundle ( ) { return browserify ( config . inputDir + config . inputFile ) . bundle ( ) . pipe ( source ( config . outputFile ) ) . pipe ( rename ( config . outputFile ) ) . pipe ( gulp . dest ( config . outputDir ) // Create the .devel.js ) . pipe ( streamify ( jsmin ( ) ) ) . pipe ( rename ( config . outputFileMin ) ) . pipe ( gulp . dest ( config . outputDir ) // Create the .min.js ) . pipe ( streamify ( gzip ( ) ) ) . pipe ( rename ( config . outputFileMinGz ) ) . pipe ( gulp . dest ( config . outputDir ) // Create the .min.gz ) ; }
Produce outfile, min, and gzip versions
Produce outfile min and gzip versions