Skip to content

Instantly share code, notes, and snippets.

@markgoodyear
Created July 29, 2015 21:02
Show Gist options
  • Select an option

  • Save markgoodyear/d7bfd94eae95af18e308 to your computer and use it in GitHub Desktop.

Select an option

Save markgoodyear/d7bfd94eae95af18e308 to your computer and use it in GitHub Desktop.

Revisions

  1. markgoodyear created this gist Jul 29, 2015.
    11 changes: 11 additions & 0 deletions gulp-bower.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    var gulp = require('gulp');
    var uglify = require('gulp-uglify');
    var concat = require('gulp-concat');
    var bower = require('main-bower-files');

    gulp.task('bower', function () {
    return gulp.src(bower())
    .pipe(concat('vendor.js'))
    .pipe(uglify())
    .pipe(gulp.dest('/build/scripts'));
    });