title: How to uglify output with Browserify in Gulp?
body: <p>I tried to uglify output of Browserify in Gulp, but it doesn't work. </p>
  
  <p><strong>gulpfile.js</strong></p>
  
  <pre><code>var browserify = require('browserify');
  var gulp = require('gulp');
  var uglify = require('gulp-uglify');
  var source = require('vinyl-source-stream');
  
  gulp.task('browserify', function() {
      return browserify('./source/scripts/app.js')
          .bundle()
          .pipe(source('bundle.js'))
          .pipe(uglify()) // ???
          .pipe(gulp.dest('./build/scripts'));
  });
  </code></pre>
  
  <p>As I understand I cannot make it in steps as below. Do I need to make in one pipe to preserve the sequence?</p>
  
  <pre><code>gulp.task('browserify', function() {
      return browserify('./source/scripts/app.js')
          .bundle()
          .pipe(source('bundle.js'))
          .pipe(uglify()) // ???
          .pipe(gulp.dest('./source/scripts'));
  });
  
  gulp.task('scripts', function() {
      return grunt.src('./source/scripts/budle.js')
          .pipe(uglify())
          .pipe(gulp.dest('./build/scripts'));
  });
  
  gulp.task('default', function(){
      gulp.start('browserify', 'scripts');
  });
  </code></pre>