Skip to content

Instantly share code, notes, and snippets.

@juanmanuelsanchez
Forked from markgoodyear/gulp-bower.js
Created July 27, 2016 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanmanuelsanchez/e6e29345f52b33bcb48a8a5f706d11cd to your computer and use it in GitHub Desktop.
Save juanmanuelsanchez/e6e29345f52b33bcb48a8a5f706d11cd to your computer and use it in GitHub Desktop.
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'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment