title: Gulp, concat and uglify files and concat with vendor
body: <p>I want to concat and uglify my JS files with gulp. After that I want to conact the result with a vendor folder which includes jquery, bootstrap, ...</p>
  
  <p>How can I concat the files from the vendor folder after uglify my js code?</p>
  
  <p>Here is my current gulp file:</p>
  
  <pre><code>var gulp = require('gulp');
  var concat = require('gulp-concat');
  var uglify = require('gulp-uglify');
  
  gulp.task('scripts', function() {
    gulp.src([
            './src/resources/assets/js/**/*.js',
            '!./src/resources/assets/js/vendor/**/*.js'
        ])
      .pipe(concat('main.js'))
      .pipe(uglify())
      .pipe(gulp.dest('./public/js/'));
  });
  
  gulp.task('default', ['scripts'], function() {
  });
  </code></pre>